-
-
Notifications
You must be signed in to change notification settings - Fork 44
Keymapping
- Keymapping
Leader key is SPACE
.
<leader>vc
: open vimrc.
<leader><leader>
: open fuzzy searcher
<leader>ch
: check vim health info
mode | key | description |
---|---|---|
n | ab | thumbnali |
n | ac | vim calculator |
n | ad | open calendar |
n | af | open current file's position with default file explorer |
n | aF | open project's(pwd) position with default file explorer |
n | ah | hex to ascii convert |
n | al | (LiveEasyAlign) |
x | al | (LiveEasyAlign) |
n | am | make |
n | as | Open vimshell or buildin terminal emulator |
n | at | open current file's position in default terminal |
n | aT | open project's(pwd) position in default terminal |
n | ay | YouDao translate |
v | ay | YouDao translate (visual mode) |
n | aw | DrawIt |
n | ar | lock screen and rest |
mode | key | description |
---|---|---|
n | bh | Open startify windows |
n | bk | delete buffer |
n | bn | next buffer or tab |
n | bp | previous buffer or tab |
n | bo | delete all buffers except current buffer |
mode | key | description |
---|---|---|
n | ca | NERDCommenterAltDelims |
n | cA | NERDCommenterAppend |
v | cA | NERDCommenterAppend |
n | cb | NERDCommenterAlignBoth |
v | cb | NERDCommenterAlignBoth |
n | cc | NERDCommenterComment |
v | cc | NERDCommenterComment |
n | ci | NERDCommenterInvert |
v | ci | NERDCommenterInvert |
n | cl | NERDCommenterAlignLeft |
v | cl | NERDCommenterAlignLeft |
n | cm | NERDCommenterMinimal |
v | cm | NERDCommenterMinimal |
n | cn | NERDCommenterNest |
v | cn | NERDCommenterNest |
n | c$ | NERDCommenterToEOL |
v | c$ | NERDCommenterToEOL |
n | c | NERDCommenterToggle |
v | c | NERDCommenterToggle |
n | cs | NERDCommenterSexy |
v | cs | NERDCommenterSexy |
n | cu | NERDCommenterUncomment |
v | cu | NERDCommenterUncomment |
n | cy | NERDCommenterYank |
v | cy | NERDCommenterYank |
mode | key | description |
---|---|---|
n | jf | MultiWindow easymotion for char |
n | jl | MultiWindow easymotion for line |
n | js | MultiChar easymotion |
n | jt | (easymotion-tn) |
n | jw | MultiWindow easymotion for word |
mode | key | description |
---|---|---|
n | fc | cd to current buffer's path |
n | fg | run Ag command |
n | fj | Open Vim File Explorer |
n | fR | rename multi file name |
n | fS | save all |
n | fs | save file |
n | ff | save file |
n | fU | CtrlP function |
ctrlp or leaderf:
mode | key | description |
---|---|---|
n | pc | colorschemecmd |
n | pk | function |
n | pb | buffer |
n | pp | file |
n | pr | mru |
n | pt | tmux session |
n | ps | Open plug status windows |
n | pu | Update plugins |
n | pl | list plugins |
mode | key | description |
---|---|---|
n | gb | Open git blame windows |
n | gd | git diff current file (vimdiff) |
n | gh | Open github url |
n | gi | list git issue |
n | gl | Open git log( browser mode) |
n | gL | Open git log(file mode) |
v | gL | Open git log(file mode) |
n | gp | git push origin master |
n | gg | git push to gerrit |
n | gm | git merge(use git rebase) |
n | gf | git fetch all |
n | gs | Open git status window |
n,x,s | gho | open git url with line info using default web browser. |
n,x,s | ghc | opy git url with line info to system clipboard |
mode | key | description |
---|---|---|
n | hk | list leader's map |
n | ? | list leader's map |
n | hm | manpage or vimhelp on current curosr word |
n | he | open eval.txt in new tab |
n | hf | open vim function-list in new tab |
n | hp | open vim script manual in new tab |
mode | key | description |
---|---|---|
n | sl | Session load |
n | sd | Session delete |
n | ss | Session save |
mode | key | description |
---|---|---|
n | mp | Markdown preview in browser |
n | mt | generate markdown TOC |
n | mu | update markdown TOC |
n | ms | show toc in sidebar |
mode | key | description |
---|---|---|
n | quit current window | |
n | qa | quit all and prompt |
n | quit all without save | |
n | qs | save and quit all |
Can be save
mean after toggle you can press SPC+lo to save your setting
without modify any config.
mode | key | description |
---|---|---|
n | tb | background dark or light toggle (Can be save) |
n | td | dos to unix or unix to dos |
n | tf | Convert file's encode |
n | tg | menu and toolbar toogle (Can be save) |
n | tm | Mouse mode toggle (Can be save) |
n | te | Open nerd tree |
n | tn | toggle line number (Can be save) |
n | to | toggle free writing in vim (Goyo) |
n | tt | Open tagbar |
n | th | realtime underline word toggle |
n | tu | undo tree window toggle |
n | tc | toggle cursorline |
n | tp | toggle paste option |
n | tj | whether use cache in ctrlp |
n | ts | toggle between long statusline and short statusline |
mode | key | description |
---|---|---|
n | vf | search c family function |
n | vt | search :TODO or FIXME |
n | vv | search for the word on current curosr |
v | vv | search for the word on current curosr |
mode | key | description |
---|---|---|
n | 1 | tab or buffer 1 |
n | 2 | tab or buffer 2 |
n | 3 | tab or buffer 3 |
n | 4 | tab or buffer 4 |
n | 5 | tab or buffer 5 |
n | 6 | tab or buffer 6 |
n | 7 | tab or buffer 7 |
n | 8 | tab or buffer 8 |
n | 9 | tab or buffer 9 |
n | tab | switch to last opened tab or buf |
n | wc | Choose windows |
n | wd | hide current windows |
n | wh | move to left win |
n | wj | move down win |
n | wk | move up win |
n | wl | move to right win |
n | wm | maxsize of current windows |
n | w= | :resize +10 |
n | w- | :resize -10 |
n | ws | horizontal open window |
n | wS | horizontal open window then focus the new one |
n | w, | :vertical resize -10 |
n | w. | :vertical resize +10 |
n | wv | vertical open window |
n | wV | vertical open window then focus the new one |
n | ww | switch between two windows |
n | wH | move window to the very right |
n | wL | move window to the very left |
n | wJ | move window to the very bottom |
n | wK | move window to the very up |
n | w<TAB>
|
switch between two windows alternately |
mode | key | description |
---|---|---|
n | mm | MarkSet |
x | mm | MarkSet |
n | mn | MarkClear |
n | m/ | MarkSearchAnyNext |
n | m? | MarkSearchAnyPrev |
n | * | MarkSearchCurrentNext |
n | # | MarkSearchCurrentPrev |
n | mr | MarkRegex |
x | mr | MarkRegex |
n | mi | bookmark annotate |
n | mc | clear current bookmark |
n | mb | bookmark browser |
n | ma | add bookmark use current line as annotate |
mode | key | description |
---|---|---|
n | d | :YcmShowDetailedDiagnostic |
n | iav | Open c family header in new tab |
n | jl | jume to definition (YCM) |
n | o | open url on cursor with default browser |
n | vc | open the vimrc in tab |
n | so | update the _vimrc |
n | sc | syntax check |
n | fml | Open Leader mappings in new window |
n | yr | run cunrrent file |
v | yr | run selection text |
n | yy | Open Yanking windows or ctrlp-register |
n | lo | save vim setting |
n | cf | format code,support c,c++,python,html |
n | ns | open vimshell or buildin terminal in a new tab |
n | nt | open new tab |
n | nf | locate current file in nerdtree |
ShortCut Key | mode | Description |
---|---|---|
Ctrl-p or SPC SPC
|
normal | fuzzy search files |
Ctrl-k |
normal | fuzzy search functions for current file |
Ctrl-j |
normal | fuzzy search buffers |
Ctrl-l |
normal | fuzzy search recent open files(MRU) |
<leader>vv |
normal,visual | global search string under cursor |
<leader>vf |
normal | global search string c function under cursor |
<leader>vt |
normal | global search TODO or FIXME |
For speed up the search process,recommand you install the silver searcher.
You can substitute in the search result of ag.
Press r in the quickfix windows,it will enter to the qfreplace mode,press ctrl-n on the cursor word it will enter to the multi-cursor mode,modify then save.
ShortCut Key | mode | Description |
---|---|---|
F1 |
all | Open vim help |
F2 |
all | Open rename windows |
F3 |
all | Open Gstatus windows |
F4 |
all | Open shell,or terminal emulator |
F5 |
all | Execute make then open quickfix |
F6 |
normal,visual | execute current file or selection code |
F7 |
normal | perform dos2unix or unix2dos for current open file. |
F8 |
all | save current session |
F9 |
normal | open tagbar windows |
F10 |
normal,visual | YouDao dict translate the word under the cursor |
F11 |
normal | Open vim file manager |
F12 |
normal,insert | open nerdtree |
ShortCut Key | mode | Description |
---|---|---|
SPC +gk
|
normal | Generate database for linux kernel |
SPC +gt
|
normal | Generate cctree database |
,u |
normal | Generate database |
,a |
normal | add database under the cur dir |
,g ,split view:<C-\>g
|
normal | GotoDefinition under the cursor |
,c ,split view:<C-\>c
|
normal | Find functions calling this function under the cursor |
vinux will automatically add cscope.out under the current directory.
vinux will add all cscope.out which path is specified by file .project
under the current directory.
File .project
format:
/home/tracyone/work/ctest/
/usr/inculde/
if file .project
is exist at the current directory,when press ,u
vinux will ask whether Generate database for specified path in .project
.
When press ,g
,vinux will try to use the function of YouCompleteMe GoToDefinition,if it failed,then use cscope.
mode | key | description |
---|---|---|
n | 1 | tab or buf 1 |
n | 2 | tab or buf 2 |
n | 3 | tab or buf 3 |
n | 4 | tab or buf 4 |
n | 5 | tab or buf 5 |
n | 6 | tab or buf 6 |
n | 7 | tab or buf 7 |
n | 8 | tab or buf 8 |
n | 9 | tab or buf 9 |
n | t | new tab |
n | q | nohls |
n | a | select all |
n | = | select all then align |
n | h | move to left win |
n | l | move to right win |
n | j | move to down win |
n | k | move to up win |
i | h | equal to <left> in insert mode |
i | l | equal to <right> in insert mode |
i | j | equal to <down> in insert mode |
i | k | equal to <up> in insert mode |
i | b | words backward. |
i | f | words forward. |
c | h | characters to the left. |
c | l | characters to the right. |
c | j | characters to the down. |
c | k | characters to the up. |
c | b | words backward. |
c | f | words forward. |
n | m | mouse enable toggle |
mode | key | description |
---|---|---|
n | SPC qf |
open quick fix window |
n | SPC ql |
open location list window(for syntax check plug ie.neomake) |
n | SPC qc |
open history command line window |
n | SPC q/ |
open history search window |
In quick fix window | ctrl-o |
older result |
In quick fix window | ctrl-i |
newer result |
In quick fix window | ctrl-t |
jump to the result in a new tab |
In quick fix window | ctrl-x |
jump to the result in a split window |
In quick fix window | ctrl-v |
jump to the result in a vertical split window |
In quick fix window |
down or up
|
open result preview window |
In quick fix window | r |
open qreplace window |
mode | key | description |
---|---|---|
n,i | C-y | Yanking win or ctrlp-register |
n | C-h | substitute the cursor word |
n | C-n | Multicusor mode toggle |
n | C-y | open yankring windows or ctrlp-register in neovim. |
i | C-j | ultisnips expand or jump forward to next selection in ultisnips |
i | C-k | jump backward to the selection in ultisnips |
n | sj | equal to za,toggle fold |
n | sk | equal to zM,fold all |
n | si | fold enable toggle |
n,v | ss | substitute |
n | k | find help on vim document or man page. |