comparison install.cmd @ 95:b96ff0dd0137

Fixed the generated vimrc's runtimepath.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 22 Mar 2012 18:43:08 -0700
parents 6b2c3f14a5c1
children 20c49d51f7e3
comparison
equal deleted inserted replaced
84:e7d12826b236 95:b96ff0dd0137
11 11
12 if exist "%userprofile%\_vimrc" ( 12 if exist "%userprofile%\_vimrc" (
13 set /P confirm=Will delete existing "%userprofile%\_vimrc". OK with that? Press CTRL-C to abort. 13 set /P confirm=Will delete existing "%userprofile%\_vimrc". OK with that? Press CTRL-C to abort.
14 del /Q "%userprofile%\_vimrc" 14 del /Q "%userprofile%\_vimrc"
15 ) 15 )
16 echo set runtimepath=%CWD:\=/%vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,%CWD:\=/%vim/after > "%userprofile%\_vimrc" 16 echo set runtimepath+=%CWD:\=/%vim > "%userprofile%\_vimrc"
17 echo source %CWD:\=/%vim/vimrc >> "%userprofile%\_vimrc" 17 echo source %CWD:\=/%vim/vimrc >> "%userprofile%\_vimrc"
18 18
19 :: Mercurial Files 19 :: Mercurial Files
20 if exist "%userprofile%\mercurial.ini" ( 20 if exist "%userprofile%\mercurial.ini" (
21 set /P confirm=Will delete existing "%userprofile%\mercurial.ini". OK with that? Press CTRL-C to abort. 21 set /P confirm=Will delete existing "%userprofile%\mercurial.ini". OK with that? Press CTRL-C to abort.