Skip to content

thisinnocence/vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vim cfg

Personal Vim configuration focused on C/C++ development, code navigation, and fast project search.

Keymap

Quick reference: KEYMAP.md

Features

  • 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

Requirements

Required

  • Vim 8.2+ (newer is better for coc.nvim)
  • nodejs (for coc.nvim)
  • clangd
  • universal-ctags

Install base dependencies (Ubuntu example):

sudo apt install nodejs clangd universal-ctags

Optional but recommended

  • ripgrep (used by LeaderF grep search)
  • cscope (for cs find)
sudo apt install ripgrep cscope

Installation

  1. Clone this repo to ~/.vim.
  2. Run:
bash install.sh

install.sh will:

  • download vim-plug (autoload/plug.vim) if missing
  • back up existing ~/.vimrc and ~/.vim to ~/.vimrc_bak / ~/.vim_bak
  • create symlinks to this repo (~/.vim, ~/.vimrc)

Plugin setup

Open Vim and run:

:PlugInstall
:CocInstall coc-clangd

Optional index setup (project root)

ctags -R
cscope -Rb

Included plugins

  • easymotion/vim-easymotion
  • tpope/vim-fugitive
  • vim-airline/vim-airline
  • vim-airline/vim-airline-themes
  • Yggdroot/LeaderF
  • preservim/nerdtree
  • cormacrelf/vim-colors-github
  • skywind3000/asyncrun.vim
  • neoclide/coc.nvim

References

basic vim

plugin manager

vim-lsp

ctrl-p(search-file/symbol)

ctags/gtags/cscope

theme

directory tree

quick move

git

async

About

Vim tips and personal config.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors