Boring VIM Editor
Vim Editor
Vi has 3 operation modes_
- Command Mode.-
default when opening file
. - Insert Mode. - by pressing
(i)
can go toinsert mode
. (Edit/Add/Remove Text) - Last Line. - Press
Esc
to go back toCommand Mode
and then Press(:)
to go to theLast Line
Mode. (Save/Discard/Exit)
Vim Modes
Commands
Command Mode
vi /filePath
Move Around_
^ - up (K)
v - down (J)
< - left - (H)
> - right - (L)
- Copy Line_
- yy
- Paste Line_
- p
- Delete a letter_
- x
- Delete a line_
- dd
- Delete 3 lines_
- d3d
- Undo Changes
- u
- Redo Changes
- Ctrl+r
- Find
- /wordToSearch
- Find Next
- n
- Find Previous
- N
Insert Mode
From Command Mode press i/o/a
To go back to Command Mode Esc
Last Line Mode
- Save
- :w
- Quit
- :q
- Save & Quit
- :wq
- Quit without Saving
- :q!
This post is licensed under CC BY 4.0 by the author.