Skip to content

Latest commit

 

History

History
120 lines (100 loc) · 3.56 KB

USAGE.md

File metadata and controls

120 lines (100 loc) · 3.56 KB

Usage

This document is intended to be a guide and index of the commands and functions available within the editor. If you find any problems please submit an issue.

Contents:

Normal mode

  1. Movement

  • h - Move cursor left.
  • j - Move cursor down.
  • k - Move cursor up.
  • l - Move cursor right.
  • Left arrow - Move cursor left.
  • Down arrow - Move cursor down.
  • Up arrow - Move cursor up.
  • Right arrow - Move cursor right.
  • G - Move cursor to the last row.
  • g - Move cursor to the first row.
  • $ - Move cursor to the end of the current row.
  • 0 - Move cursor to the start of the current row.
  • a - Move one step to the right and enter insert mode.
  • A - Move cursor to the end of the current row and enter insert mode .
  • HOME - Move cursor to the start of the current row.
  • END - Move cursor to the end of the current row.
  • PAGE UP - Move cursor to the first row.
  • PAGE DOWN - Move cursor to the last line or move cursor to the last visual line (??).
  • ctrl + m - Jump to symbol definition (bric will read from a tags file).
  • ctrl + n - Jump back to previous position after ctrl + m .
  1. Edit

  • cr - Copy current row.
  • yr - Cut current row.
  • pr - Paste row from clipboard.
  • dr - Delete current row.
  • cp - Paste from clipboard.
  1. Misc

  • cc - Clears the clipboard
  • : - Enter command mode.
  • i - Enter insert mode.
  • I - Enter insert mode.
  • o - Enter insert mode on a new row under the current row.
  • O - Enter insert mode on a new row over the current row.

Insert mode

  1. Movement

  • PAGE UP - Move cursor to the first row.
  • PAGE DOWN - Move cursor to the last line or move cursor to the last visual line (??).
  • Left arrow - Move cursor left.
  • Down arrow - Move cursor down.
  • Up arrow - Move cursor up.
  • Right arrow - Move cursor right.
  • HOME - Move cursor to the start of the current row.
  • END - Move cursor to the end of the current row.
  1. Edit

  • ctrl + y - Cut current row.
  • ctrl + p - Paste row from clipboard.
  • ctrl + h - Delete character under cursor
  • ctrl + v - Paste from clipboard.
  1. Misc

  • ctrl + q - Quit.
  • ctrl + s - Save changes.
  • ctrl + f - Find.
  • ctrl + r - Find and replace.
  • ctrl + d - Enter selection mode.
  • ESC - Enter normal mode.

Selection mode

  1. Movement

  • h - Move cursor left.
  • j - Move cursor down.
  • k - Move cursor up.
  • l - Move cursor right.
  • Left arrow - Move cursor left.
  • Down arrow - Move cursor down.
  • Up arrow - Move cursor up.
  • Right arrow - Move cursor right.
  1. Misc

  • ESC - Enter Normal mode.
  • ctrl + c - Copy to clipboard.

Command mode

  1. Movement

  • *[0-9] - Move cursor to specified line number.
  1. Misc

  • q! - Force quit without saving changes.
  • w - Save changes.
  • wq - Save changes and quit.
  • q - Quit.
  • f - Find.
  • fr - Find and replace.
  • sm - Enter selection mode.
  • sp - ???
  • up - ???