g
The
Extra
The g command in Vim
Extra
extra cmds
Prefix for many powerful commands. Toggle the g overlay in the header to see all
g+key mappings. Run :help g in Vim for the full list.Examples
gg(top of file)gd(goto definition)gf(open file under cursor)g~(toggle case)gv(reselect last visual)
Related plugin
tpope/vim-commentary — gcc comments line, gc{motion} comments range, gcu uncomments. || tpope/vim-characterize
Reference
Learn every Vim command visually — right in your browser.
Add Vim What? to Chrome — FreeAlso on Firefox.
Related keys