Add keyboard shortcuts
This commit is contained in:
parent
1fa57ef26b
commit
09813e83f3
1 changed files with 10 additions and 0 deletions
|
|
@ -23,16 +23,24 @@ CONTENTS
|
|||
- e Move one word forward
|
||||
- b Move one word backward
|
||||
- G Move to end of the file
|
||||
- cc Move to right indentation and enter insert mode (removes all characters in line)
|
||||
- Shift+4 Move to the end of the line
|
||||
- ^ Move to the beginning of the line
|
||||
- :N Move to line number N
|
||||
- [[ Move section forward
|
||||
- ]] Move section backwards
|
||||
- ]m Move section forward
|
||||
- [m Move section backwards
|
||||
- CTRL + ] Jump to definition on cursor
|
||||
- CTRL + O Jump definition backwards
|
||||
- CTRL + I Jump definition forward
|
||||
- CTRL + \ Open the definition in a new tab
|
||||
- ALT + ] Open the definition in a new vertical split
|
||||
- :ls List all buffers
|
||||
- :b N Open buffer N
|
||||
- :vert sb N Open buffer in vertical split
|
||||
- :%bd|e# Delete all buffers except current (%bd = delete all buffers. e# = open the last buffer for editing. The pipe in between just does one command after another.)
|
||||
- :bd N Delete buffer number N
|
||||
- :tabe Edit file in new tab
|
||||
- gt Switch to next tab
|
||||
- gT Switch to previous tab
|
||||
|
|
@ -52,3 +60,5 @@ CONTENTS
|
|||
|
||||
- CRTL v + deletion + insert char + escape insert character in selected
|
||||
line
|
||||
- :set tags+=/source/code/name/tags Tell vim where source code is located
|
||||
(use ctags -R <location> for recursive tag generation)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue