I have done with the slowness of cygwin git and switch to git-for-windows. Unfortunately, vim on cygwin doesn’t work well with git-for-windows per various path problems (e.g. plugin, path delimiters, etc). Here are some notes for tweaking vim on Windows.
-
.vimorvimfilesDirectories?
Later one is used on Windows, however, many plugin or your scripts may refer the previous one. Thus,mklinkit! i.e..vim <==> vimfiles. -
VIM with Python Support
Official vim81 compiles vim.exe without python support and gvim.exe withpython/dyn(verify that withgvim --version). Thus, Python support is only avail as ofgvim.exeper official packages.
Assumepython.exeandpython27.dllwas installed inC:\Python\bin
Add following environment variablesPYTHONHOME=C:\Python\bin PATH=%PATH%;%PYTHONHOME%For
:h pythonhomeand:h pythondll.
Verify above settings with:python print ''. -
Color Scheme
gvim requires true color to apply color scheme correctly. Convert your cterm scheme with this script (not mine work).
Place scheme files in%HOME%\vimfiles\color. Windows equivalent of$HOME\.vimon Unix. Note that%HOME%\.vimrcstill works. -
gtags
Jason Hood provides wonderful pre-built gtags for Windows. Download and unzip it. Then add itsbindirectory to your%PATH%. -
gvim specific settings
Place them in.gvimrcset guifont=Consolas:h10:cANSI " (not really) maximize window at start set lines=999 columns=999
Written with StackEdit.
留言
張貼留言