xml
Full help :h xml-plugin
-
<leader>c: rename tag (only tag name) -
<leader>C: rename tag completely. (with attributes) -
<leader>d: (cursor on tag) delete tag pair, leaving the content -
<leader>D: (cursor on tag) delete tag pair with the content -
<leader>>: shift everything in the tag right -
<leader><: shift everything in the tag left -
<leader>o: (cusor on tag) insert a tag under the current one e.g.
<a(I)> <b>foo</b> </a>
to
<a>
<new>
<b>foo</b>
</new>
</a>
-
<leader>O : (cusor on tag) insert a tag outside the current one e.g.
<a(I)> <b>foo</b> </a>
to
<new>
<a>
<b>foo</b>
</a>
</new>
autoClose 2009
Full help :h autoclose.txt
-
customize open/close char:
let g:AutoClosePairs = {'(': ')', '{': '}', '[': ']', '"': '"', "'": "'"}
- toggle autoclose plugin : <leader>ac (defined in vimrc)
DrawIt
Full help :h drawit
-
<leader>di: start drawIt (or : DIstart) -
<leader>ds: stop drawIt (or : DIstop) -
<s-left/right/up/d>: move cursor without drawing line -
<space>: toggle (into /out of) erase mode`````
-
<pgDn>: \ (then move down and right) -
<pgUp>: / (then move up and right) -
<home>: \ (then move up and left) -
<end>: / (then move down and left)
In Visual Mode:
- visual block then <leader>a : draw arrow from corners
- visual block then <leader>b : draw box
- visual block then <leader>e : draw eclipse
fencView
:FencView -> open encoding list window
surround
Full help :h surround
Old text Command New text ~
"Hello *world!" ds" Hello world!
[123+4*56]/2 cs]) (123+456)/2
"Look ma, I'm *HTML!" cs"<q> <q>Look ma, I'm HTML!</q>
if *x>3 { ysW( if ( x>3 ) {
Hello w*orld! ysiw) Hello (world)! (you surround)
Hello w*orld! yssB {Hello world!} yss=do it on current line
my $str = *whee!; vlllls' my $str = 'whee!';
ys = you surround
yss do surrounding on the current line
There is also *yS* and *ySS* which indent the surrounded text and place it on a line of its own.
easyMotion
Full help :h easymotion
-
<leader><leader>w: find word forward -
<leader><leader>b: find word backward -
<leader><leader>f: find char to the right -
<leader><leader>F: find char to the left -
<leader><leader>j: find line downward -
<leader><leader>k: find line upward
ack.vim
Full help :h ack
YankRing
Plugin Removed
Full help :h yankring
- :YRShow open yankring window
- :YRClear clear yankring
- :YRToggle [0|1] dis/enable yankring
NERD_Tree
Full help :h NERDTree
-
B: show/hide bookmark -
I: show/hide hidden files
NERD_Commenter
Full help :h NERDCommenter
vimwiki
Full help :h vimwiki
General
-
-: reduce header level -
=: add header level -
+: change text into link -
glm: increase indent of a list item -
gll: decrease indent of a list item
Diary
Todo List
- vim: set fen=off