Skip to content

Instantly share code, notes, and snippets.

@bobbydavid
Created December 8, 2012 04:52
Show Gist options
  • Save bobbydavid/4238666 to your computer and use it in GitHub Desktop.
Save bobbydavid/4238666 to your computer and use it in GitHub Desktop.
Editor commands I need

Navigation

  • line up/down.
  • page up/down (or 1/2 page).
  • left/right.
  • word left/right.
  • end of line / beginning of text on this line / 0-column on this line.
  • beginning of file / end of file.
  • drop/goto placeholder (marks).

Search

  • find exact or case insensitive.
  • find next/prev.
  • search & replace with prompt.
  • replace all.

Screen

  • toggle 1-2 columns.
  • switch between columns.
  • center screen on cursor.
  • move cursor to top/bottom of screen.
  • scroll up/down (cursor doesn't move).

File

  • new tab.
  • save.
  • close.
  • close all / quit.
  • open (fuzzy name matching).
  • switch between .cpp / .h
  • switch between file and BUILD/Makefile.

Editing

  • undo/redo.
  • delete from cursor to end of word.
  • delete line.
  • clear the line and put the cursor where the line began.
  • merge line with line below.
  • highlight an area to delete.
  • multi-line indent/unindent.
  • select all (Sublime's ctrl-d on steriods).

Features

  • auto-complete based on tokens in file.
  • build & walk through build errors.
  • 80-character max-width line.
  • visible tabs/spaces/trailing whitespace.

Pipe dreams

  • auto-complete based on understanding of code (methods this class has, etc).
  • comments wrap and continue onto the next line. Pressing a double-return will end the comment (can this be done with snippets?).
  • Joining lines handles comments; deleting the characters where each line begins with "//" or "*".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment