記錄一下自己vim的hotkey
Tabs相關
- 產生新tab:<Ctrl-T><Ctrl-T>
- 關掉目前的tab:<Ctrl-T><Ctrl-W>
- 移到前ㄧ個tab:<Shift-H>
- 移到下ㄧ個tab:<Shift-L>
Split(分割視窗)相關
- 移到左split:<Ctrl-w>H
- 移到右split:<Ctrl-w>L
- 移到上split:<Ctrl-w>K
- 移到下split:<Ctrl-w>J
開啓/關閉NERDTree:<Fn><F6>
開啓/關閉TagBar:<Fn><F7>
ctags
- 搜尋游標所在變數、函式定義:<Ctrl-w>]
- 回到搜尋處:<Ctrl-w>t
cscope
- <Fn>s symbol: find all references to the token under cursor
- <Fn>g global: find global definition(s) of the token under cursor
- <Fn>c calls: find all calls to the function name under cursor
- <Fn>t text: find all instances of the text under cursor
- <Fn>e egrep: egrep search for the word under cursor
- <Fn>f file: open the filename under cursor
- <Fn>i includes: find files that include the filename under cursor
- <Fn>d called: find functions that function under cursor calls
沒有留言:
張貼留言