git clone https://github.com/guoqiao/vimx.git ~/.vim && cd ~/.vim
Install dependencies:
- flake8 OR pylint was required by syntastic, install both here.
- ctags was required by tagbar
- silverseacher-ag was requrired by ctrlp
pip:
pip install -U flake8 pylint
OS X:
brew install ctags-exuberant the_silver_searcher
Ubuntu:
sudo apt-get install exuberant-ctags silversearcher-ag
Or you can build ag:
./build-ag.sh
Then install:
./install.sh
Install YouCompleteMe: cd bundle/YouCompleteMe ./install.sh
That's all!
- leader: ,
- map ; to :
- tabs: tn to new, tc to close, th to left, tl to right, tm to mv to last
- windows: ctrl + [hjkl]
- no highlight: ,h
- edit vimrc: ,ev
- NERDTree: tt to toggle tree, ff to find file in tree
- NERD-Commenter: leader + c + i
- YankRing: leader + p to open paste history, q to quit
- CtrlP: ctrl + p
- Emmet: ctrl + y + ,
- Ack: use Ack FOOBAR to search on cmdline
- vim-indent-object: ii, ia
- vim-easymotion: ,,w
- vim-multiple-cursors: ctrl + n for next, ctrl + b for prev, ctrl + x to skip, esc
- tabular: :Tab/=, = is the char to align
pro only:
- tagbar: TT
- YouCompleteMe: ,j to jump to def
clipboard and python support are required in this config, to check your current vim:
vim --version | grep clip
vim --version | grep python
There should be a '+' sign before them. If not, build vim yourself:
./build-vim.sh
./build-ag.sh