Difference between revisions of "Vim keys"
Jump to navigation
Jump to search
m |
m |
||
| Line 13: | Line 13: | ||
!align="left" style="background-color:#ffffcc;"|Unit!! !!align="left"|Key!! !!align="left"|Function!! !!align="left"|Key!! !!align="left"|Function | !align="left" style="background-color:#ffffcc;"|Unit!! !!align="left"|Key!! !!align="left"|Function!! !!align="left"|Key!! !!align="left"|Function | ||
|- | |- | ||
| − | |style="background-color:#ffffcc;"|Character|| ||l<br><Right-arrow>|| ||Move one character backward|| ||h|| ||Move one character forward | + | |style="background-color:#ffffcc;"|Character|| ||l<br><Right-arrow>|| ||Move one character backward|| ||h<br><Left-arrow>|| ||Move one character forward |
|- | |- | ||
|style="background-color:#ffffcc;"|Word|| ||w|| ||Move 1 word forward|| ||b|| ||Move one word backward | |style="background-color:#ffffcc;"|Word|| ||w|| ||Move 1 word forward|| ||b|| ||Move one word backward | ||
Revision as of 17:44, 11 February 2018
Ressources to check
- https://coderwall.com/p/adv71w/basic-vim-commands-for-getting-started
- http://vim.wikia.com/wiki/Copy,_cut_and_paste
- vimtutor
Movement (Normal mode)
| Forward | Backward | |||||||
| Unit | Key | Function | Key | Function | ||||
|---|---|---|---|---|---|---|---|---|
| Character | l <Right-arrow> |
Move one character backward | h <Left-arrow> |
Move one character forward | ||||
| Word | w | Move 1 word forward | b | Move one word backward | ||||
| Line | j | Move to next line | k | Move to previous line | ||||
| Line | Move to end of line | 0 (zero) | Move to start of line | |||||
| Sentence | Move forward to end of sentence | Move back to beginning of sentence | ||||||
| Document | G | Move to the end of the document | gg | Move to the start of the document | ||||