Initialization
1. Build vim from source
https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-sourceNote that
cd ~ git clone https://github.com/vim/vim.git cd vim ./configure --with-features=huge \ --enable-multibyte \ --enable-rubyinterp \ --enable-pythoninterp \ --with-python-config-dir=/usr/lib64/python2.7/config \ --enable-python3interp \ --with-python3-config-dir=/usr/lib64/python3.5/config \ --enable-perlinterp \ --enable-luainterp \ --enable-gui=gtk2 --enable-cscope --prefix=/usr
2. Install vundle
https://github.com/VundleVim/Vundle.vim
3. Install plugin
Youcompleteme
http://www.alexeyshmalko.com/2014/youcompleteme-ultimate-autocomplete-plugin-for-vim/
https://valloric.github.io/YouCompleteMe/#general-usage
NerdTree
http://vimawesome.com/plugin/nerdtree-red
VimAwesome (include a lot plugins)
http://vimawesome.com/
Problem unsolved:
when install pluginYouCompleteMe unavailable: requires Vim compiled with Python (2.6+ or 3.3+) support
check python support in vim
:echo has('python') -> 0
Cheat Sheet
http://vim.rtorr.com/
NerdTree
https://www.cheatography.com/stepk/cheat-sheets/vim-nerdtree/
No comments:
Post a Comment