Vim

Vim has multiple modes:


Mode
Description
NormalDefault; for navigation and simple editing
hit Esc to go into Normal mode
InsertFor explicitly inserting and modifying text
press i to go into Insert mode.
— INSERT — @ lower-left means you are in Insert mode
Command LineFor operations like saving, exiting, etc.
Visual???
Select ???
Ex-Mode ???

You are now in Normal mode. If you have text, you can move around with your arrow keys or other navigation keystrokes (which you will see later).

Pressing the colon in Normal mode switches Vim to Command Line mode

CommandDescription
:q!quit without saving
:x!save and quit
:set numberdisplay line numbers
:<LINE_NUMBER>goto a specific line
:/<SEARCH_WORD>search word
:$goto last line
dddeletes a line
uundo
vbegin text highlight
(use arrow keys to highlight)
ycopy highlighted text to clipboard
ppaste earlier highlighted text
ocreate new line under current line
Normal Mode commands


Reference

  1. https://opensource.com/article/19/3/getting-started-vim

--- :: Skyferia Tech's Related Posts :: ---