vim:cheatsheet:editing
Differences
This shows you the differences between two versions of the page.
vim:cheatsheet:editing [2021/02/16 09:27] – created peter | vim:cheatsheet:editing [2021/02/16 09:28] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== VIM - Cheatsheet - Editing ====== | ====== VIM - Cheatsheet - Editing ====== | ||
+ | |||
+ | < | ||
+ | r - replace a single character | ||
+ | |||
+ | J - join line below to the current one with one space in between | ||
+ | gJ - join line below to the current one without space in between | ||
+ | |||
+ | gwip - reflow paragraph | ||
+ | |||
+ | g~ - switch case up to motion | ||
+ | gu - change to lowercase up to motion | ||
+ | gU - change to uppercase up to motion | ||
+ | |||
+ | cc - change (replace) entire line | ||
+ | C - change (replace) to the end of the line | ||
+ | c$ - change (replace) to the end of the line | ||
+ | ciw - change (replace) entire word | ||
+ | cw - change (replace) to the end of the word | ||
+ | |||
+ | s - delete character and substitute text | ||
+ | S - delete line and substitute text (same as cc) | ||
+ | |||
+ | xp - transpose two letters (delete and paste) | ||
+ | |||
+ | u - undo | ||
+ | U - restore (undo) last changed line | ||
+ | Ctrl + r - redo | ||
+ | |||
+ | . - repeat last command | ||
+ | </ | ||
vim/cheatsheet/editing.1613467660.txt.gz · Last modified: 2021/02/16 09:27 by peter