Hardcore vi memory aid, with explanations

From Clubnix.net

Jump to: navigation, search
USE OF HARDCORE VI MEMORY AID
     This memory aid is meant to help experienced vi/vim/nvi/BusyBox vi/...
     users. In order to help those users memorize those last hard to remember
     seldomly used commands this aid tries to reveal the elegance and sense of
     the vi commands. This memory aid will not work as a quick reference for
     novice users.

WRITING TEXT (MEMORY AID EXPLANATION)
     i insert in front of character cursor is resting on; count will reproduce
     what is typed in insert mode
     a append after the character the cursor is resting on; count will
     reproduce what is typed in insert mode
     o open up a blank line below and switch to insert mode
     O open up a blank line above and switch to insert mode
     I insert in front of line
     A append just before end of line

WRITING TEXT (MEMORY AID ITSELF)
                   or more        O
     i.a          correctly       I   i.a     A
      o                           o


SCRATCHING TEXT (MEMORY AID EXPLANATION)
     x x out character cursor is resting on; like overtyping with x's on an old
     typewriter except it looks less messy; like Del
     X x out character before cursor; like Backspace
     d delete object supplied (below that object is represented by a ?)
     D delete object $; i.e. delete till end of line

SCRATCHING TEXT (MEMORY AID ITSELF)
     d?

     ^     X.x     $
            DDDDDDDD


SCRATCHING+WRITING TEXT (MEMORY AID EXPLANATION)
     r replace one (or count) characters all by the same character
     R keep replacing characters; i.e. switch typeover on
     s substitute one (or count) characters by what user types in insert mode
     S substitute one (or count) lines by what user types in insert mode
     c change object supplied by what user types in insert mode
     C change object $ by what user types in insert mode; i.e. change till end   
     of line

SCRATCHING+WRITING TEXT (MEMORY AID ITSELF)
           replace by same char r   R keep replacing
        substitute by insertion s   S substitute lines
     change object by insertion c?  C change till end of line
Personal tools