4 <h1><a name=
"vim_commands" id=
"vim_commands">Vim Commands
</a></h1>
6 <div class=
"plugin_uparrow">
7 <a href=
"#" title=
"Back to top">
8 <img src=
"lib/plugins/uparrow/images/tango-small.png" alt=
"Back to top"/>
13 <!-- SECTION "Vim Commands" [1-28] -->
14 <h2><a name=
"modes" id=
"modes">Modes
</a></h2>
16 <table class=
"inline">
18 <th class=
"col0 leftalign" colspan=
"2"> Modes
</th>
21 <td class=
"col0 leftalign"> insert
</td><td class=
"col1"> when inserting or replacing text
</td>
24 <td class=
"col0 leftalign"> normal
</td><td class=
"col1"> after pressing escape
</td>
27 <td class=
"col0"> command
</td><td class=
"col1"> after pressing : on normal mode
</td>
30 <td class=
"col0"> operator pending
</td><td class=
"col1 leftalign"> after a command that needs an operator (e.g. :d)
</td>
33 <td class=
"col0 leftalign"> visual
</td><td class=
"col1"> after pressing v, V or Ctrl+V on normal mode
</td>
36 <th class=
"col0" colspan=
"2"> Miscelaneous
</th>
39 <td class=
"col0"> :set fileencoding=utf8
</td><td class=
"col1"> change file encoding
</td>
42 <div class=
"plugin_uparrow">
43 <a href=
"#" title=
"Back to top">
44 <img src=
"lib/plugins/uparrow/images/tango-small.png" alt=
"Back to top"/>
49 <!-- SECTION "Modes" [29-392] -->
50 <h2><a name=
"motion" id=
"motion">Motion
</a></h2>
52 <div class=
"plugin_uparrow">
53 <a href=
"#" title=
"Back to top">
54 <img src=
"lib/plugins/uparrow/images/tango-small.png" alt=
"Back to top"/>
59 <!-- SECTION "Motion" [393-412] -->
60 <h3><a name=
"operators" id=
"operators">Operators
</a></h3>
62 <table class=
"inline">
64 <th class=
"col0" colspan=
"2"> Operators
</th>
67 <td class=
"col0"> c
</td><td class=
"col1"> change
</td>
70 <td class=
"col0"> d
</td><td class=
"col1"> delete
</td>
73 <td class=
"col0"> y
</td><td class=
"col1"> yank
</td>
76 <td class=
"col0"> ~
</td><td class=
"col1"> swap case
</td>
79 <td class=
"col0"> g~
</td><td class=
"col1"> swap case
</td>
82 <td class=
"col0"> g[uU]
</td><td class=
"col1"> make lowercase/uppercase
</td>
85 <td class=
"col0"> !
</td><td class=
"col1"> filter through external program
</td>
88 <td class=
"col0"> =
</td><td class=
"col1"> indent
</td>
91 <td class=
"col0"> g?
</td><td class=
"col1"> ROT13 encoding
</td>
94 <td class=
"col0"> [
><]
</td><td class=
"col1"> shift right/left
</td>
97 <td class=
"col0"> zf
</td><td class=
"col1"> define a fold
</td>
100 <div class=
"plugin_uparrow">
101 <a href=
"#" title=
"Back to top">
102 <img src=
"lib/plugins/uparrow/images/tango-small.png" alt=
"Back to top"/>
107 <!-- SECTION "Operators" [413-696] -->
108 <h3><a name=
"left-right" id=
"left-right">Left-Right
</a></h3>
110 <table class=
"inline">
112 <th class=
"col0" colspan=
"2"> Left-Right
</th>
115 <td class=
"col0"> [hl]
</td><td class=
"col1"> left/right
</td>
118 <td class=
"col0"> [
0$]
</td><td class=
"col1"> beginning/end of line
</td>
121 <td class=
"col0"> [^|g_]
</td><td class=
"col1"> first/last non-blank of line
</td>
124 <td class=
"col0"> [g0|g$]
</td><td class=
"col1"> beginning/end of screen line
</td>
127 <td class=
"col0"> g^
</td><td class=
"col1"> first non-blank of screen line
</td>
130 <td class=
"col0"> |
</td><td class=
"col1"> go to column
</td>
133 <td class=
"col0"> f
<char
> </td><td class=
"col1"> find
<char
> </td>
136 <td class=
"col0"> F
<char
> </td><td class=
"col1"> find reverse
<char
> </td>
139 <td class=
"col0"> t
<char
> </td><td class=
"col1"> till
<char
> </td>
142 <td class=
"col0"> T
<char
> </td><td class=
"col1"> till reverse
<char
> </td>
145 <td class=
"col0"> ;
</td><td class=
"col1"> repeat last [fFtT]
</td>
148 <td class=
"col0"> ,
</td><td class=
"col1"> repeat reverse last [fFtT]
</td>
151 <div class=
"plugin_uparrow">
152 <a href=
"#" title=
"Back to top">
153 <img src=
"lib/plugins/uparrow/images/tango-small.png" alt=
"Back to top"/>
158 <!-- SECTION "Left-Right" [697-1134] -->
159 <h3><a name=
"up-down" id=
"up-down">Up-Down
</a></h3>
161 <table class=
"inline">
163 <th class=
"col0" colspan=
"2"> Up-Down
</th>
166 <td class=
"col0"> [kj]
</td><td class=
"col1"> up/down
</td>
169 <td class=
"col0"> [gk|gj]
</td><td class=
"col1"> up/down screen line
</td>
172 <td class=
"col0"> [-+]
</td><td class=
"col1"> same as [kj]^
</td>
175 <td class=
"col0"> G
</td><td class=
"col1"> go to line
</td>
178 <div class=
"plugin_uparrow">
179 <a href=
"#" title=
"Back to top">
180 <img src=
"lib/plugins/uparrow/images/tango-small.png" alt=
"Back to top"/>
185 <!-- SECTION "Up-Down" [1135-1272] -->
186 <h3><a name=
"word" id=
"word">Word
</a></h3>
188 <table class=
"inline">
190 <th class=
"col0" colspan=
"2"> Word
</th>
193 <td class=
"col0"> w
</td><td class=
"col1"> next word
</td>
196 <td class=
"col0"> W
</td><td class=
"col1"> next WORD (space delimited word)
</td>
199 <td class=
"col0"> [eE]
</td><td class=
"col1"> next end of word/WORD
</td>
202 <td class=
"col0"> [bB]
</td><td class=
"col1"> previous (beginning of) word/WORD
</td>
205 <td class=
"col0"> [ge|gE]
</td><td class=
"col1"> previous end of word/WORD
</td>
208 <div class=
"plugin_uparrow">
209 <a href=
"#" title=
"Back to top">
210 <img src=
"lib/plugins/uparrow/images/tango-small.png" alt=
"Back to top"/>
215 <!-- SECTION "Word" [1273-1480] -->
216 <h3><a name=
"text_object" id=
"text_object">Text Object
</a></h3>
218 <table class=
"inline">
220 <th class=
"col0" colspan=
"2"> Text Object
</th>
223 <td class=
"col0"> (
</td><td class=
"col1"> previous sentence
</td>
226 <td class=
"col0"> )
</td><td class=
"col1"> next sentence
</td>
229 <td class=
"col0"> {
</td><td class=
"col1"> previous paragraph
</td>
232 <td class=
"col0"> }
</td><td class=
"col1"> next paragraph
</td>
235 <td class=
"col0"> ]]
</td><td class=
"col1"> next { in the first column
</td>
238 <td class=
"col0"> ][
</td><td class=
"col1"> next } in the first column
</td>
241 <td class=
"col0"> [[
</td><td class=
"col1"> previous { in the first column
</td>
244 <td class=
"col0"> []
</td><td class=
"col1"> previous } in the first column
</td>
247 <div class=
"plugin_uparrow">
248 <a href=
"#" title=
"Back to top">
249 <img src=
"lib/plugins/uparrow/images/tango-small.png" alt=
"Back to top"/>
254 <!-- SECTION "Text Object" [1481-1775] -->
255 <h3><a name=
"text_object_selection" id=
"text_object_selection">Text Object Selection
</a></h3>
257 <table class=
"inline">
259 <th class=
"col0" colspan=
"2"> Text Object Selection
</th>
262 <td class=
"col0"> [ai][wWsp]
</td><td class=
"col1"> a/inner word/WORD/sentence/paragraph
</td>
265 <td class=
"col0"> a[ or a]
</td><td class=
"col1"> a [] block
</td>
268 <td class=
"col0"> i[ or i]
</td><td class=
"col1"> inner [] block
</td>
271 <td class=
"col0"> [ai][()b]
</td><td class=
"col1"> a/inner () block
</td>
274 <td class=
"col0"> [ai][
<>]
</td><td class=
"col1"> a/inner
<> block
</td>
277 <td class=
"col0"> [ai]t
</td><td class=
"col1"> a/inner tag block
</td>
280 <td class=
"col0"> [ai][{}B]
</td><td class=
"col1"> a/inner {} block
</td>
283 <td class=
"col0"> [ai][”
'`]
</td><td class=
"col1"> a/inner quoted string
</td>
286 <div class=
"plugin_uparrow">
287 <a href=
"#" title=
"Back to top">
288 <img src=
"lib/plugins/uparrow/images/tango-small.png" alt=
"Back to top"/>
293 <!-- SECTION "Text Object Selection" [1776-2112] -->
294 <h3><a name=
"others" id=
"others">Others
</a></h3>
296 <table class=
"inline">
298 <th class=
"col0" colspan=
"2"> Others
</th>
301 <td class=
"col0"> %
</td><td class=
"col1"> next ([{}]), #if, #ifdef, #else, #elif, #endif
</td>
304 <td class=
"col0"> ])
</td><td class=
"col1"> next unmatched )
</td>
307 <td class=
"col0"> ]}
</td><td class=
"col1"> next unmatched }
</td>
310 <td class=
"col0"> [(
</td><td class=
"col1"> previous unmatched (
</td>
313 <td class=
"col0"> [{
</td><td class=
"col1"> previous unmatched {
</td>
316 <td class=
"col0"> ]m
</td><td class=
"col1"> next start of method
</td>
319 <td class=
"col0"> ]M
</td><td class=
"col1"> next end of method
</td>
322 <td class=
"col0"> [m
</td><td class=
"col1"> previous start of method
</td>
325 <td class=
"col0"> [M
</td><td class=
"col1"> previous end of method
</td>
328 <td class=
"col0"> ]#
</td><td class=
"col1"> next unmatched #else or #endif
</td>
331 <td class=
"col0"> [#
</td><td class=
"col1"> previous unmatched #else or #endif
</td>
334 <td class=
"col0"> ]* or ]/
</td><td class=
"col1"> next end of a C comment “*/”
</td>
337 <td class=
"col0"> [* or [/
</td><td class=
"col1"> previous start of a C comment ”/*”
</td>
340 <td class=
"col0"> [HML]
</td><td class=
"col1"> top/middle/botton of window
</td>
343 <div class=
"plugin_uparrow">
344 <a href=
"#" title=
"Back to top">
345 <img src=
"lib/plugins/uparrow/images/tango-small.png" alt=
"Back to top"/>
350 <!-- SECTION "Others" [2113-2652] -->
351 <h2><a name=
"map" id=
"map">Map
</a></h2>
353 <table class=
"inline">
355 <th class=
"col0 leftalign" colspan=
"2"> Types
</th>
358 <td class=
"col0 leftalign"> :map
</td><td class=
"col1"> normal, visual or operator pendind mode
</td>
361 <td class=
"col0 leftalign"> :map!
</td><td class=
"col1"> insert or command mode
</td>
364 <th class=
"col0 leftalign" colspan=
"2"> Example
</th>
367 <td class=
"col0" rowspan=
"2"> :map!
<C-s
> <Esc
>:w
<CR
> </td><td class=
"col1"> maps Ctrl+S to “escape :w enter”
</td>
370 <td class=
"col0">on insert or command mode
</td>
373 <div class=
"plugin_uparrow">
374 <a href=
"#" title=
"Back to top">
375 <img src=
"lib/plugins/uparrow/images/tango-small.png" alt=
"Back to top"/>
380 <!-- SECTION "Map" [2653-2920] -->
381 <h2><a name=
"abreviation" id=
"abreviation">Abreviation
</a></h2>
383 <table class=
"inline">
385 <th class=
"col0" colspan=
"2"> Types
</th>
388 <td class=
"col0 leftalign"> :ab(breviate)
</td><td class=
"col1 leftalign"> insert and command mode
</td>
391 <td class=
"col0"> :iab(brev)
</td><td class=
"col1"> insert mode
</td>
394 <td class=
"col0"> :cab(brev)
</td><td class=
"col1"> command mode
</td>
397 <th class=
"col0" colspan=
"2"> Example
</th>
400 <td class=
"col0" rowspan=
"2"> :iab #i #include
</td><td class=
"col1"> changes #i
<Space
> to #include
</td>
403 <td class=
"col0"> on insert mode
</td>
406 <div class=
"plugin_uparrow">
407 <a href=
"#" title=
"Back to top">
408 <img src=
"lib/plugins/uparrow/images/tango-small.png" alt=
"Back to top"/>
413 <!-- SECTION "Abreviation" [2921-3166] -->
414 <h2><a name=
"window_management" id=
"window_management">Window Management
</a></h2>
416 <table class=
"inline">
418 <th class=
"col0" colspan=
"2"> Creation
</th>
421 <td class=
"col0"> vim -o
</td><td class=
"col1"> open each file in a separate window
</td>
424 <td class=
"col0"> :sp(lit) or Ctrl+W,S
</td><td class=
"col1"> split current horizontally
</td>
427 <td class=
"col0"> :vs(plit) or Ctrl+W,V
</td><td class=
"col1"> split current vertically
</td>
430 <td class=
"col0"> :new or Ctrl+W,N
</td><td class=
"col1"> open new horizontally
</td>
433 <td class=
"col0"> :vne(w)
</td><td class=
"col1"> open new vertically
</td>
436 <th class=
"col0" colspan=
"2"> Navigation
</th>
439 <td class=
"col0"> Ctrl+W,W or Ctrl+(W,W)
</td><td class=
"col1"> iterate through windows
</td>
442 <td class=
"col0"> Ctrl+W,[HJKL]
</td><td class=
"col1"> go to windows on left, down, up, right
</td>
445 <th class=
"col0" colspan=
"2"> Resizing
</th>
448 <td class=
"col0"> Ctrl+W,=
</td><td class=
"col1"> make all windows equally big
</td>
451 <td class=
"col0"> :res[ize] -N or Ctrl+W,-
</td><td class=
"col1"> decrease height
</td>
454 <td class=
"col0"> :res[ize] +N or Ctrl+W,+
</td><td class=
"col1"> increase height
</td>
457 <td class=
"col0"> :res[size] [N] or Ctrl+W,_
</td><td class=
"col1"> set window height
</td>
460 <td class=
"col0"> Ctrl+W,
< </td><td class=
"col1"> decrease width
</td>
463 <td class=
"col0"> Ctrl+W,
> </td><td class=
"col1"> increase width
</td>
466 <td class=
"col0"> Ctrl+W,|
</td><td class=
"col1"> set width
</td>
469 <th class=
"col0" colspan=
"2"> Destruction
</th>
472 <td class=
"col0"> Ctrl+W,C
</td><td class=
"col1"> close window
</td>
475 <td class=
"col0"> Ctrl+W,O
</td><td class=
"col1"> close all other windows
</td>
478 <div class=
"plugin_uparrow">
479 <a href=
"#" title=
"Back to top">
480 <img src=
"lib/plugins/uparrow/images/tango-small.png" alt=
"Back to top"/>
485 <!-- SECTION "Window Management" [3167-3951] -->
486 <h2><a name=
"buffer_management" id=
"buffer_management">Buffer Management
</a></h2>
488 <table class=
"inline">
490 <th class=
"col0" colspan=
"2"> Creation
</th>
493 <td class=
"col0"> :e(dit)
<name
> </td><td class=
"col1"> open buffer
</td>
496 <th class=
"col0" colspan=
"2"> Navigation
</th>
499 <td class=
"col0"> :b(uffer)
<num
> </td><td class=
"col1"> switch to buffer
<num
> </td>
502 <td class=
"col0"> :sb(uffer)
<num
> </td><td class=
"col1"> split windows and switch to buffer
<num
> </td>
505 <th class=
"col0" colspan=
"2"> Status
</th>
508 <td class=
"col0"> :ls or :buffers or :files
</td><td class=
"col1"> list buffers
</td>
511 <th class=
"col0" colspan=
"2"> Command Execution
</th>
514 <td class=
"col0"> :buffdo
</td><td class=
"col1"> execute command on each buffer
</td>
517 <th class=
"col0" colspan=
"2"> Destruction
</th>
520 <td class=
"col0"> :bd(elete)
</td><td class=
"col1"> unload buffer
</td>
523 <td class=
"col0"> :bw(ipeout)
</td><td class=
"col1"> unload and delete buffer
</td>
526 <div class=
"plugin_uparrow">
527 <a href=
"#" title=
"Back to top">
528 <img src=
"lib/plugins/uparrow/images/tango-small.png" alt=
"Back to top"/>
533 <!-- SECTION "Buffer Management" [3952-4371] -->
534 <h2><a name=
"tab_management" id=
"tab_management">Tab Management
</a></h2>
536 <table class=
"inline">
538 <th class=
"col0" colspan=
"2"> Creation
</th>
541 <td class=
"col0"> vim -p
</td><td class=
"col1"> open each file in a separate tab
</td>
544 <td class=
"col0"> :tabe(dit)
</td><td class=
"col1"> open tab
</td>
547 <td class=
"col0"> Ctrl+W,Shift+T
</td><td class=
"col1"> open current window in a new tab
</td>
550 <td class=
"col0"> Ctrl+W,GF
</td><td class=
"col1"> open filename under cursor in new tab
</td>
553 <th class=
"col0" colspan=
"2"> Navigation
</th>
556 <td class=
"col0"> :tabn(ext) or gt
</td><td class=
"col1"> go to next tab
</td>
559 <td class=
"col0"> :tabp(revious) or gT
</td><td class=
"col1"> go to previous tab
</td>
562 <th class=
"col0" colspan=
"2"> Organization
</th>
565 <td class=
"col0"> :tabm(ove)
<num
> </td><td class=
"col1"> move to after tab page
<num
> </td>
568 <th class=
"col0" colspan=
"2"> Status
</th>
571 <td class=
"col0"> :tabs
</td><td class=
"col1"> list tabs
</td>
574 <th class=
"col0" colspan=
"2"> Command Execution
</th>
577 <td class=
"col0"> :tabdo
</td><td class=
"col1"> execute command on each tab
</td>
580 <th class=
"col0" colspan=
"2"> Destruction
</th>
583 <td class=
"col0"> :tabc(lose)
</td><td class=
"col1"> close tab
</td>
586 <td class=
"col0"> :tabo(nly)
</td><td class=
"col1"> close all other tabs
</td>
589 <div class=
"plugin_uparrow">
590 <a href=
"#" title=
"Back to top">
591 <img src=
"lib/plugins/uparrow/images/tango-small.png" alt=
"Back to top"/>
596 <!-- SECTION "Tab Management" [4372-4945] -->
597 <h2><a name=
"tags" id=
"tags">Tags
</a></h2>
602 Use
<a href=
"http://ctags.sourceforge.net/" class=
"urlextern" title=
"http://ctags.sourceforge.net/" rel=
"nofollow">ctags
</a> to generate the tags file.
605 <table class=
"inline">
607 <th class=
"col0" colspan=
"2"> Navigation
</th>
610 <td class=
"col0"> :ta(g)
</td><td class=
"col1"> jump to tag
</td>
613 <td class=
"col0"> Ctrl+]
</td><td class=
"col1"> jump to tag under cursor
</td>
616 <td class=
"col0"> Ctrl+W ]
</td><td class=
"col1"> split window and go to tag under cursor
</td>
619 <td class=
"col0"> Ctrl+W }
</td><td class=
"col1"> show tag under cursor in preview window
</td>
622 <td class=
"col0"> :pta(g)
</td><td class=
"col1"> show tag in preview window
</td>
625 <td class=
"col0"> Ctrl+T
</td><td class=
"col1"> jump back
</td>
628 <td class=
"col0"> :ts(elect)
</td><td class=
"col1"> list tags that match
</td>
631 <td class=
"col0"> :tj(ump)
</td><td class=
"col1"> :ts that jumps directly when possible
</td>
634 <td class=
"col0"> :sts(elect)
</td><td class=
"col1"> :tselect and split
</td>
637 <td class=
"col0"> g]
</td><td class=
"col1"> Ctrl+] with :tselect
</td>
640 <td class=
"col0"> :tn(ext)
</td><td class=
"col1"> next matching tag
</td>
643 <td class=
"col0"> :tp(revious)
</td><td class=
"col1"> previous matching tag
</td>
646 <td class=
"col0"> :p*
</td><td class=
"col1"> same with preview window
</td>
649 <th class=
"col0" colspan=
"2"> Status
</th>
652 <td class=
"col0"> :tags
</td><td class=
"col1"> list tag stack
</td>
655 <th class=
"col0" colspan=
"2"> Destruction
</th>
658 <td class=
"col0"> :pc(lose) or Ctrl+W,Z
</td><td class=
"col1"> close preview window
</td>
661 <div class=
"plugin_uparrow">
662 <a href=
"#" title=
"Back to top">
663 <img src=
"lib/plugins/uparrow/images/tango-small.png" alt=
"Back to top"/>
668 <!-- SECTION "Tags" [4946-5661] -->
669 <h2><a name=
"change_list" id=
"change_list">Change List
</a></h2>
671 <table class=
"inline">
673 <th class=
"col0" colspan=
"2"> Navigation
</th>
676 <td class=
"col0"> g;
</td><td class=
"col1"> go to previous change
</td>
679 <td class=
"col0"> g,
</td><td class=
"col1"> go to next change
</td>
682 <th class=
"col0" colspan=
"2"> Status
</th>
685 <td class=
"col0"> :changes
</td><td class=
"col1"> list changes
</td>
688 <div class=
"plugin_uparrow">
689 <a href=
"#" title=
"Back to top">
690 <img src=
"lib/plugins/uparrow/images/tango-small.png" alt=
"Back to top"/>
695 <!-- SECTION "Change List" [5662-5801] -->
696 <h2><a name=
"marks" id=
"marks">Marks
</a></h2>
698 <table class=
"inline">
700 <th class=
"col0" colspan=
"2"> Definition
</th>
703 <td class=
"col0"> m
<char
> </td><td class=
"col1"> set mark
</td>
706 <th class=
"col0" colspan=
"2"> Navigation
</th>
709 <td class=
"col0"> [
'`]
<char
> </td><td class=
"col1"> jump to line/position of mark
</td>
712 <td class=
"col0"> ]
' </td><td class=
"col1"> jump to line next mark
</td>
715 <td class=
"col0"> ]`
</td><td class=
"col1"> jump to position next mark
</td>
718 <td class=
"col0"> [
' </td><td class=
"col1"> jump to line previous mark
</td>
721 <td class=
"col0"> [`
</td><td class=
"col1"> jump to position previous mark
</td>
724 <th class=
"col0" colspan=
"2"> Status
</th>
727 <td class=
"col0"> :marks
</td><td class=
"col1"> list the marks
</td>
730 <div class=
"plugin_uparrow">
731 <a href=
"#" title=
"Back to top">
732 <img src=
"lib/plugins/uparrow/images/tango-small.png" alt=
"Back to top"/>
737 <!-- SECTION "Marks" [5802-6107] -->
738 <h2><a name=
"jumps" id=
"jumps">Jumps
</a></h2>
740 <table class=
"inline">
742 <th class=
"col0" colspan=
"2"> Navigation
</th>
745 <td class=
"col0"> Ctrl+O
</td><td class=
"col1"> go to previous jump position
</td>
748 <td class=
"col0"> Ctrl+I or
<Tab
> </td><td class=
"col1"> go to next jump position
</td>
751 <th class=
"col0" colspan=
"2"> Status
</th>
754 <td class=
"col0"> :jumps
</td><td class=
"col1"> list jumps
</td>
757 <div class=
"plugin_uparrow">
758 <a href=
"#" title=
"Back to top">
759 <img src=
"lib/plugins/uparrow/images/tango-small.png" alt=
"Back to top"/>
764 <!-- SECTION "Jumps" [6108-] -->