Command Mode


This document is a reference to how how to use Editra when it is in command mode. Command mode can be triggered in one of two ways. One is when the ':' character is entered during Normal Mode (see Vi Emulation Mode) and the Second is by the key short cut (Ctrl+E) on Windows/Linux, (Cmd+E) on OS X. When command mode is activate a mini-buffer will be opened at the bottom of the edit portion of the window to receive the command sequence. Editra Command Mode is mostly Ex compatible but does also include some extensions to help manipulate the various components of the editor.

Some of the key sequences are described using regular expressions so here is a quick description of what each expression stands for.

  • [0-9]* means a number may optionally provided
  • [0-9]+ means a number must be provided


Command Name Command Description Key
Change Directory Changes the working directory for path lookups when opening files and such cd path
Edit File Open a file or start a new one e filename
Edit Next Buffer Move to next buffer [0-9]*n
Edit Previous Buffer Move to previous buffer [0-9]*N
Go Next Line Move caret down x lines +[0-9]+
Go Previous Line Move caret up x lines -[0-9]+
Go Next Window Go to the top document in the next window (next is determined by order of when window was opened) nw
Go Previous Window Go to the top document in previous window (previous is determined by order of when window was opened) -[0-9]+
Goto Line Move caret to a specific line linenumber
Next Command Get Next Command Down Arrow
Previous Command Get Previous Command Up Arrow
Quit Quit program q
Save Write current buffer to disk w
Save and Quit Write current buffer to disk and exit editor wq
Tab Completion For command such as 'cd' it will auto fill paths Tab