To install, run
git clone git://github.com/sidnair/vim-config.git ~/.vim
cd ~/.vim
make install
Follow the instructions for installing YouCompleteMe and tern_for_vim in each plugin's README.
To update the repository, run
make update
- vimrc is commented; reading it is the best way to get a sense of what's added. In particular, the "Keybindings" sections might be useful.
- The line
set gdefault
makes search and replace global by default. This means that adding/g
only replace the first instance on a line. - For YCM, I had to run
./install.sh --clang-completer --system-libclang
because of some issues with Arch. See ycm-core/YouCompleteMe#538 and ycm-core/YouCompleteMe#870 (comment) - If you see weird symbols in your status line, you need a special font to
render some unicode symbols. You can disable this by removing the line
let g:airline_powerline_fonts = 1
from the vimrc. vim-airline Has instructions for updating the font if you want to symbols. On my Linux box, I ranfc-match monospace
to find which font I was using in my terminal, moved the relevant font from here to ~/.fonts, ranfc-cache -v ~/.fonts
to update the font cache, and updated my KDE settings to use it.
vimrc.mine and gvimrc.mine contain system-specific settings or other settings that should not be part of a general configuration. Thus, they are not tracked in the repo. They are included in your vimrc automatically. I have included some examples of what this might look like.
Should work on Linux and Mac OS X. Untested on Windows.