Skip to content
GitHub

Commands

Type : in NORMAL mode, then a command, then Enter.

Command Action
:w Save
:w name Save as name.md
:saveas Save under a new name
:wq, :x Save and quit
:q Quit (asks when there are unsaved changes)
:q! Quit and discard changes
:bd Close the current tab
:bd! Close the current tab and discard its changes
:enew New note
Command Action
:colorscheme name Switch theme and remember it
:colo name, :theme name Same as :colorscheme

Run these with the cursor inside a table. See Tables.

Command Action
:addrow, :tr Add a row below
:addcol, :tc Add a column to the right
:delrow Delete the current row
:delcol Delete the current column
:tablefmt, :tf Re-align the table