__ ()_ __ __
\ \ / / | '_ ` _
\ V /| | | | | | |
_/ ||| || ||
- vim > vi
- Mode editor
- $ vim filename
- :o filename
- :q
- :w
- NORMAL
- INSERT
- VISUAL
- h,j,k,l
- ^ or 0 - move to the start of the current line
- $ - move to the start of the current line
- gg - jump to the beginning of the file
- G - jump to the end of the file
- x - delete the character under the cursor
- dd - delete the current line
- D or d$ - delete from the cursor to the end of the current line
- d0 or d^ - delete from the cursor to the start of the current line
- yy - yankk the current line
- y$ - yank from the cursor to the end of the current line
- y0 or y^ - yank from the cursor to the start of the current line
p
- f-F
- t-T
- / - Forward
- ? - Backward
-
-
- Word under cursor - forward
-
- n - Next result, forward
- N - Next result, backward
- w - Forward to the beginning of next word
- b - Backward to the next beginning of a word
- e - Forward to the next end of word
- c - Change
- d - Delete
- y - Yank
- vimrc
- set -o vi