Skip to content

qianxinyu/vimrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation:

git clone https://github.com/qianxinyu/vimrc.git && cd vimrc && bash init.sh

Dependencies:

  1. Clang-format3.4 or higher (vim-clang-format)
  2. vim7.3 build with python enabled(youcompleteme)

Key Maps:

###Basic

key description
; leader
rl reload vimrc(after you edit configs)
lg move cursor to line head
le move cursor to line end
<leader><leader>c edit vimrc
<leader><leader>s eidt settings
<leader><leader>k edit keymaps
<leader><leader>m edit plugin management
<leader><leader>p edit plugin settings
<leader>k show all keymaps info
<ctrl>h move to the left split window
<ctrl>j move to the bottom split window
<ctrl>k move to the top split window
<ctrl>l move to the right split window
<leader>f toggle folding
<leader>q quit current split window
<leader>w save current buffer
<leader>wq save current buffer and quit split window
<leader>y copy to system clipboard
<leader>p paste from system clipboard

###Plugins

key description
wm toggle winmanager(nerdtree file list)
tl toggle taglist
<leader>ff search file in project
<leader>fa search keyword in project(show split window)
<leader>fq search keyword in project(show quickfix)
<leader>cd toggle c++'s header file and cc file
<leader>dx doc block style comment
<leader>tm toggle minbuff explorer
<leader>tt move one buffer backward
<leader>ft move one buffer forward
<leader>dt delete current buffer
<leader>ig toggle indent guide
<leader>ie enable indent guide
<leader>id disable indent guide
<leader>tc toggle clang-format
<leader>cf formating c/c++ code by hand
<leader>td go to definition (not woring from now)
<leader>tr go back to keyword from defition(not woring)
<leader>tg toggle git gutter
<leader>]g jump to git gutter's next hunk
<leader>[g jump to git gutter's prev hunk

Clang format

remove AlignConsecutiveAssignments option if your clang-format version less than 3.9 (latest)

Theme

remove or comment solarized configs if you don't need solarized theme

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •