Openstuff Wiki : VIRef

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

Revision [423]

Last edited on 2007-10-09 15:08:36 by StanKju
Additions:
~- Set folding method:
~- Then, use //"za"// to open/close a fold
Deletions:
Set folding method:
Then, use //"za"// to open/close a fold


Revision [422]

Edited on 2007-10-09 15:05:43 by StanKju
Additions:
~- First, define a mapping //"h1"//:
~- Then, write some text like //"This is a test"//. Finally, use //"h1"// to automatically create the headlines:
Deletions:
First, define a mapping //"h1"//:
Then, write some text like //"This is a test"//. Finally, use //"h1"// to automatically create the headlines:


Revision [421]

Edited on 2007-10-09 15:05:01 by StanKju
Additions:
=== Display commands ===
:colorscheme change color scheme (ex: default)
:set cursorline marks the entire current line
:set cursorcolumn marks the entire column
:set number adding line numbers
:set list display unprintable characters (:set nolist to stop this)
=== abbreviation ===
:abbreviate abbreviation for all modes
:iabbrev abbreviation for insert mode
:cabbrev abbreviation for command line mode
:source $VIM/abb.vim load abbreviation from a file
=== Move Commands ===
In normal mode:
g, go to previous changes location
g; moves forward through changes
( or ) beginning or end of the sentence
{ or } beginning or end of the paragraph
gd goto declaration (or first occurrence) of the variable
To navigate line by line on wrapped text:
Or whith mapping: press Up and Down on a wrapped line, get you to the next line on the screen instead of the next physical line
imap gj
imap gk
nmap gj
nmap gk
=== Markers ===
Text markers:
ma marks a location with marker "a"
'a go to marker "a" (go to the beginning of the line)
:marks list current marks
:delmarks a delete mark "a"
Visible markers:
~- define //piet// marker:
:sign define piet text=>> texthl=Search
~- define key mapping for place, unplace and jump:
:map :exe ":sign place 123 line=" . line(".") ." name=piet file=" . expand("%:p")
:map :exe ":sign unplace 123 file=" . expand("%:p")
:map :exe ":sign jump 123 file=" . expand("%:p")
=== Undo, Redo ===
=== Searching ===
=== Ident ===
]p indent paste
<< left shift
>> right shift
= ident selected text
1G=G ident all file
:set ai autoident
=== Macro ===
=== Folding ===
Set folding method:
:set foldmethod=indent
Then, use //"za"// to open/close a fold
=== Headlines ===
First, define a mapping //"h1"//:
:map h1 yypVr=0
Then, write some text like //"This is a test"//. Finally, use //"h1"// to automatically create the headlines:
This is a test
==============
=== Miscellaneous ===
Deletions:
== Text Markers ==
ma marks a location with marker "a"
'a go to marker "a" (go to the beginning of the line)
== Undo, Redo ==
== Searching ==
== Ident ==
]p indent paste
<< left shift
>> right shift
= Ident selected text
== macro ==
== Miscellaneous ==
:set list display unprintable characters (:set nolist to stop this)
'. go to last modified line


Revision [252]

Edited on 2007-05-10 14:44:51 by StanKju
Additions:
g up/down arrow up/down one screen lines
Deletions:
g up/down arrow up/down one screen lines


Revision [251]

Edited on 2007-05-10 14:44:36 by StanKju
Additions:
====== Quick reference for VI text editor ======
g up/down arrow up/down one screen lines
Deletions:
g up/down arrow up/down one screen lines


Revision [250]

The oldest known version of this page was created on 2007-05-10 14:41:48 by StanKju
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0850 seconds