User Tools

Site Tools


vim:cheatsheet:exiting

VIM - Cheatsheet - Exiting

    :w - write (save) the file, but don't exit

    :wq or :x or ZZ - write (save) and quit

    :w !sudo tee % - write out the current file using sudo

    :q - quit (fails if there are unsaved changes)
    :q! or ZQ - quit and throw away unsaved changes

    :wqa - write (save) and quit on all tabs
vim/cheatsheet/exiting.txt · Last modified: 2021/02/16 10:41 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki