Difference between revisions of "Vim keys"
Jump to navigation
Jump to search
| Line 35: | Line 35: | ||
|- | |- | ||
|x|| ||Delete the character under the cursor | |x|| ||Delete the character under the cursor | ||
| + | <!-- | ||
|- | |- | ||
|M-<DelBack>|| ||Kill word before cursor | |M-<DelBack>|| ||Kill word before cursor | ||
| Line 51: | Line 52: | ||
|- | |- | ||
|C-y|| ||Yank back killed text at current cursor position. M-y will then cycle through earlier killed texts. | |C-y|| ||Yank back killed text at current cursor position. M-y will then cycle through earlier killed texts. | ||
| + | --> | ||
|} | |} | ||
[[Category:Værktøjer, Programmering]][[Category:Keyboard shortcuts]] | [[Category:Værktøjer, Programmering]][[Category:Keyboard shortcuts]] | ||
Revision as of 21:26, 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 or ← | 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 | ||||
Editing (Normal mode)
| Key | Function | |
|---|---|---|
| x | Delete the character under the cursor |