vi ∆
I
- start editing in Insert modeR
- start editing in Overwrite modeEsc
- Leave editing:
- Goto Command mode2yy
- Yank 2 lines into buffer2dd
- Cut 2 lines into bufferP
- paste before cursorp
- paste after cursory$
- Copy everything from the cursor to the end of the line
copy paste ∆
https://linuxize.com/post/how-to-copy-cut-paste-in-vim/
search and replace ∆
https://www.baeldung.com/linux/vim-search-replace#basic-search-and-replace-using-slash-and-dot
Command mode: ∆
/
- Searchw
- write fileq
- quit VIq!
- quit VI discarding the changes made
Actions ∆
-
d
- couper -
y
- copier -
dis
to delete inside a sentence. -
das
to delete around a sentence. -
dip
to delete inside a paragraph. -
dap
to delete around a paragraph.
Items ∆
w
- wordp
- paragrap$
- end of line^
- beginong of linee
- end of word}
- end of paragraph