Vim
Commands
- go to the last line -
G
- delete all lines -
dG
- replace all substrings with empty -
:%s/phrase to delete//gc
- turn off visual mode -
:set mouse-=a
Edit multiple lines at once
- Put cursor on the first line
- Hit
<ctrl>+v
to enter visual mode
- Select all needed lines above/below
- Hit
<shift>+i
to enter edit mode
- Type text
- Hit
<esc>