Personal Vim configuration focused on C/C++ development, code navigation, and fast project search.
Quick reference: KEYMAP.md
- LSP workflow via
coc.nvim+clangd - Fast file/symbol search via LeaderF (+ ripgrep)
- Git blame integration via
vim-fugitive - Project tree via
NERDTree - Async build task via
asyncrun.vim - ctags/cscope based code navigation
- Vim 8.2+ (newer is better for coc.nvim)
nodejs(for coc.nvim)clangduniversal-ctags
Install base dependencies (Ubuntu example):
sudo apt install nodejs clangd universal-ctagsripgrep(used by LeaderF grep search)cscope(forcs find)
sudo apt install ripgrep cscope- Clone this repo to
~/.vim. - Run:
bash install.shinstall.sh will:
- download
vim-plug(autoload/plug.vim) if missing - back up existing
~/.vimrcand~/.vimto~/.vimrc_bak/~/.vim_bak - create symlinks to this repo (
~/.vim,~/.vimrc)
Open Vim and run:
:PlugInstall
:CocInstall coc-clangdctags -R
cscope -Rbeasymotion/vim-easymotiontpope/vim-fugitivevim-airline/vim-airlinevim-airline/vim-airline-themesYggdroot/LeaderFpreservim/nerdtreecormacrelf/vim-colors-githubskywind3000/asyncrun.vimneoclide/coc.nvim
- http://oenhan.com/vim8-c-ide-plugin-vimrc
- https://github.com/oenhan/vim
- https://github.com/amix/vimrc/blob/master/vimrcs/basic.vim
- https://github.com/universal-ctags/ctags
- https://www.gnu.org/software/global
- https://cscope.sourceforge.net