commands.md

December 17, 2020 ยท View on GitHub

Regular Commands

CommandDescription
:TOhtmlAlias for tohtml
:actionExecute a bim action
:buffersShow the open buffers
:callCall a function
:checkpropCheck a property value; returns the inverse of the property
:clearyankClear the yank buffer
:colorgutterShow or change status of gutter colorization for unsaved modifications
:colorschemeAlias for theme
:crnlShow or set the line ending mode
:cursorcolumnShow the visual column offset of the cursor.
:eOpen a file
:gitShow or change status of git integration
:global.autohidetabsWhether to show the tab bar when there is only one tab
:global.gitShow or change the default status of git integration
:global.numbersSet whether numbers are displayed by default
:global.statusbarShow or set whether to display the statusbar
:helpShow help text.
:historyDisplay command history
:hlcurrentShow or set the configuration option to highlight the current line
:hlparenShow or set the configuration option to highlight matching braces
:horizontalscrollingSet the horizontal scrolling mode
:indentEnable smart indentation
:keynamePress and key and get its name.
:listfunctionsList functions
:mapkeyMap a key to an action.
:maxcolumnHighlight past the given column to indicate maximum desired line length
:nohClear search term
:noindentDisable smart indentation
:numbersShow or set the display of line numbers
:paddingShow or set cursor padding when scrolling vertically
:qClose buffer
:q!Force close buffer
:qaTry to close all buffers
:qa!Force exit
:qallAlias for qa
:quirkHandle quirks based on environment variables
:recalcRecalculate syntax for the entire file.
:relativenumbersShow or set the display of relative line numbers
:rundirRun scripts from a directory, in unspecified order
:runscriptRun a script file
:setcapEnable or disable quirks/features.
:setcolorSet colorscheme colors
:showfunctionShow the commands in a function
:smartcaseShow or set the status of the smartcase search option
:smartcompleteEnable autocompletion while typing
:spaceindicatorSet the space indicator
:spacesUse spaces for indentation
:splitSplit the current view.
:splitpercentDisplay or change view split
:syntaxShow or set the active syntax highlighter
:tabindicatorSet the tab indicator
:tabnNext tab
:tabnewOpen a new tab
:tabpPrevious tab
:tabsUse tabs for indentation
:tabstopShow or set the tabstop (width of an indentation unit)
:themeSet color theme
:tohtmlConvert the document to an HTML representation with syntax highlighting.
:trycallCall a function but return quietly if it fails
:unsplitShow only one buffer on screen
:versionShow version information.
:wWrite a file
:whatisDescribe actions bound to a key in different modes.
:wqWrite and close buffer
:wrapsearchEnable search wrapping around from top or bottom

Prefix Commands

CommandDescription
:s...Perform a replacement over selected lines
:(backtick)...Executes Python commands.
:%s...Perform a replacement over the entire file.
:!...Executes shell commands.