- Where is this Vim installed? Within Vim, run
:echo $VIM - The home directory is
$HOME. Within Vim, enter:echo $HOMEor:echo ~ - A history of Vim commands is in
$HOME/_viminfo. Within Vim, enter:and then↑and↓to cycle through history :scriptnameslists files that Vim loaded for you, including your.vimrcfile.vimrcis not created for you by most installations. Create one and save it in$HOME- To edit your configuration in Vim, enter
:e $HOME/.vimrcor:e ~/.vimrc(tilde is an alias of HOME) - The Vim installed as part of msysgit does not have syntax files for most languages. To fix this, install Vim for Windows (gvim) and copy syntax files over from one installation to the other, e.g.
~\Program Files (x86)\Vim\vim74\syntax-- to -->~\Program Files (x86)\Git\share\vim\vim74\syntax. Another option is to go into~\Program Files (x86)\Git\bin\and edit the vim and vi files to run your gvim installation of Vim instead. - Git for Windows (msysgit) calls a shell script
/bin/vimto locate and run Vim. Edit this file if you want to change the default. :set syntax=whitespaceis a hack to see spaces/tabs highlighted as red/green. Use:set syntax=JavaScript(or whatever) to go back. http://stackoverflow.com/a/19012475/23566- Window switching! Control+W H/J/K/L.
- Colors: http://codeyarns.com/2011/07/29/vim-chart-of-color-names/
Last active
January 15, 2016 07:12
-
-
Save robert-claypool/306df964cb6443a7334b to your computer and use it in GitHub Desktop.
My notes on Vim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment