Openstuff Wiki : VIRef

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

Revision [252]

This is an old revision of VIRef made by StanKju on 2007-05-10 14:44:51.
 

Quick reference for VI text editor


Text Markers

 ma        marks a location with marker "a"
 'a        go to marker "a" (go to the beginning of the line)


Undo, Redo

u            undo
control-r    redo


Searching

/mystring      search for "mystring"
:%s/aaa/AAA/gc replace each "aaa" occurrence by "AAA" (ask confirmation)
:%s/aaa/AAA/g  replace each "aaa" occurrence by "AAA" (no confirmation)


Ident

]p     indent paste
<<     left shift
>>     right shift
<visual mode> =    Ident selected text


macro

qa        record keystrokes into register a
q         stop keystroke recording
@a        execute keystrokes from register a


Miscellaneous

:set list         display unprintable characters (:set nolist to stop this)
control-p         word completion in insert mode
'.                go to last modified line
g up/down arrow   up/down one screen lines

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.1188 seconds