Vim (Vi IMproved), a command-line text editor, provides several modes for different kinds of text manipulation. Pressing
i
in normal mode enters insert mode. Pressing<Esc>
goes back to normal mode, which enables the use of Vim commands. See alsovimdiff
,vimtutor
,nvim
. More information: https://www.vim.org.
vim {{path/to/file}}
vim +{{line_number}} {{path/to/file}}
:help<Enter>
:wq<Enter>
<ESC>u
n
/N
to go to next/previous match):/{{search_pattern}}<Enter>
:%s/{{regular_expression}}/{{replacement}}/g<Enter>
:set nu<Enter>