Skip to content

Instantly share code, notes, and snippets.

@bobbydavid
Created December 8, 2012 04:52

Revisions

  1. bobbydavid revised this gist Dec 8, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions commands.md
    Original file line number Diff line number Diff line change
    @@ -36,6 +36,7 @@

    ## Editing

    * undo/redo.
    * delete from cursor to end of word.
    * delete line.
    * clear the line and put the cursor where the line began.
  2. bobbydavid created this gist Dec 8, 2012.
    66 changes: 66 additions & 0 deletions commands.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,66 @@
    ## 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

    * 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 "*".