Neovim, a programmer’s text editor based on Vim, provides several modes for different kinds of text manipulation. Pressing
iin normal mode enters insert mode.<Esc>goes back to normal mode, which doesn’t allow regular text insertion. See also:vim,vimtutor,vimdiff. More information: https://neovim.io.
nvim path/to/file
<Esc>i
P):<Esc>yy|dd
<Esc>u
n/N to go to next/previous match):<Esc>/search_pattern<Enter>
<Esc>:%s/regular_expression/replacement/g<Enter>
<Esc>ZZ|<Esc>:x<Enter>|<Esc>:wq<Enter>
<Esc>:q!<Enter>