Quit without saving
Force quit discarding all changes
:q!
- tool
- vim10 commands
More vim commands
-
:%s/old/new/gcReplace all occurrences interactively (c = confirm)
-
vim +42 file.txtStart vim with cursor on line 42
-
/pattern (n/N next/prev) ?pattern (backward)/ searches forward, ? searches backward; n/N cycle results
-
:g/^#/dDelete all lines starting with # (comment lines)
-
gg=GGo to top (gg), re-indent to end of file (=G)