VimConfigs
Instructions
- Install Pathogen for bundling your plugins.
- Place ~/.vim and ~/.vimrc in your home directory.
- Install all the plugins below to ~/.vim/bundle/
.vimrc changes
,ev
will open your .vimrc,sv
will source your .vimrc:
is mapped to;
so you don't have to hold shift, save keystrokes FTW- Arrow keys cannot be used in command mode (use HJKL), they do work in insert mode.
- CTRL-n for NERDTREE
- CTRL-p for ctrlp
- Use
let g:ctrlp_custom_ignore
in .vimrc for ignoring files in ctrlp - Leader key
/
is mapped to,
Colorscheme
- Place any colorscheme files in ~/.vim/colors/
- Write the name of the colorscheme in .vimrc
if &t_Co >= 256 || has("gui_running")
colorscheme <COLOR_SCHEME_NAME>
endif
Plugins
- nerdtree
- vim-json
- vim-javascript-syntax
- vim-javascript
- typescript-vim
- tern_for_vim
- emmet-vim
- ctrlp
- vim-indent-guides
- syntastic
- YouCompleteMe (Optional, see below for instructions)
Installing YouCompleteMe
- Install cmake
brew install cmake
- Install macvim
export PATH=/usr/local/bin:$PATH
brew update
brew install vim && brew install macvim
ln -s /usr/local/bin/mvim vim
- clone YouCompleteMe to ~/.vim/bundle
- run
git submodule update --init --recursive
in ~/.vim/bundle/YouCompleteMe - run
./install.py --clang-completer
in ~/.vim/bundle/YouCompleteMe