Skip to content

global

Resources

:g

:g/pattern_to_look_for/command

A few examples:

:g/import/m$
" moves all lines containing the word 'import' to the end of the file

g

g<         " reopen output of last command
g&         " replay last substitute command
gU{motion} " uppercase
gu{motion} " lowercase
gF         " go to specific line in a file
11g_       " go to the end of the 10th line below
gv         " re-highlight last highlighted region
gi         " jump to last insert location