Windows setup batch file
Added a tool to create junction points, so that the vim folder can be symlinked to profile directory
This commit is contained in:
BIN
junction.exe
Normal file
BIN
junction.exe
Normal file
Binary file not shown.
24
setup.bat
Normal file
24
setup.bat
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
rem Change to the directory of this script
|
||||||
|
cd /d %0\..
|
||||||
|
|
||||||
|
ver | find "XP" > nul
|
||||||
|
if %ERRORLEVEL% == 0 goto vXp
|
||||||
|
|
||||||
|
goto vOver
|
||||||
|
|
||||||
|
:vXp
|
||||||
|
set target=%UserProfile%\vimfiles
|
||||||
|
set cmd=junction "%target%" "%cd%"
|
||||||
|
start /I %cmd%
|
||||||
|
set cmd=fsutil hardlink create "%UserProfile%\_vimrc" "%cd%\vimrc"
|
||||||
|
start /I %cmd%
|
||||||
|
goto done
|
||||||
|
|
||||||
|
|
||||||
|
:vOver
|
||||||
|
|
||||||
|
goto done
|
||||||
|
|
||||||
|
:done
|
||||||
5
vimrc
5
vimrc
@@ -38,6 +38,9 @@ if has("autocmd")
|
|||||||
au InsertLeave * let &updatetime=updaterestore
|
au InsertLeave * let &updatetime=updaterestore
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:Powerline_symbols = 'fancy'
|
if has("gui_running")
|
||||||
|
else
|
||||||
|
let g:Powerline_symbols = 'fancy'
|
||||||
|
endif
|
||||||
|
|
||||||
set autoread "automatically reload files
|
set autoread "automatically reload files
|
||||||
|
|||||||
Reference in New Issue
Block a user