git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh
mkdir -p ~/.vim_runtime/pack/plugins/start
git clone --depth=1 https://github.com/dense-analysis/ale ~/.vim_runtime/pack/plugins/start/ale
➜ ~ cat ~/.vim_runtime/my_configs.vim
set nu
packloadall
let g:ale_update_tagstack = 1
"Generate tags and cscope.out from FileList.txt (c, cpp, h, hpp)
nmap <C-@> :!find -name "*.c" -o -name "*.cpp" -o -name "*.h" -o -name "*.hpp" > FileList.txt<CR>
\ :!ctags -L -< FileList.txt<CR>
\ :!cscope -bkq -i FileList.txt<CR>
网友评论