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 | + | |style="background-color:#ffffcc;"|Character|| ||l or →|| ||Move one character backward|| ||h←|| ||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 | ||
|- | |- | ||
| − | |style="background-color:#ffffcc;"|Line|| ||j | + | |style="background-color:#ffffcc;"|Line|| ||j or ↓|| ||Move to next line|| ||k or ↑|| ||Move to previous line |
|- | |- | ||
|style="background-color:#ffffcc;"|Line|| || || ||Move to end of line|| ||0 (zero)|| ||Move to start of line | |style="background-color:#ffffcc;"|Line|| || || ||Move to end of line|| ||0 (zero)|| ||Move to start of line | ||
Revision as of 17:53, 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 or → | Move one character backward | h← | Move one character forward | ||||
| Word | w | Move 1 word forward | b | Move one word backward | ||||
| Line | j or ↓ | Move to next line | k or ↑ | 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 | ||||