vim配置之安装脚本
vimConfig/install/install.sh
1 git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle 2 3 cp ./_vimrc.vim ~/.vimrc 4 echo "Install success!";
vimConfig/install/remove.sh
1 rm -rf ~/.vim/bundle 2 rm ~/.vimrc 3 echo "remove success!";
vimConfig/install/_vimrc.vim
1 set nocompatible " be iMproved 2 filetype off " required! 3 4 set rtp+=~/.vim/bundle/vundle/ 5 call vundle#rc() 6 7 Bundle 'gmarik/vundle' 8 9 Bundle 'a.vim' 10 Bundle 'molokai' 11 Bundle 'The-NERD-tree' 12 Bundle 'minibufexpl.vim' 13 Bundle 'Lokaltog/vim-powerline' 14 Bundle 'Tagbar' 15 Bundle 'AutoComplPop' 16 Bundle 'Auto-Pairs' 17 Bundle 'ctrlp.vim' 18 19 "这个需要7.4 20 "Bundle 'Valloric/YouCompleteMe' 21 22 filetype plugin indent on " required! 23 24 "自定义的配置文件路径 25 set runtimepath+=~/vimConfig
vimConfig/install/readme
ctrl+p快速查找 F12开关tagbar F2开启nerd-tree 7.4的vim支持ycm插件,mac下brew安装的vim支持ycm,vim通过BundleInstall后,ycm应该会提示安装失败,我们这么做 cd ~/.vim/bundle/YouCompleteMe/ ./install.sh --clang-completer 即可