Auto complete tags
installation: git clone https://github.com/sukima/xmledit.git, then make (unnecessary?)
when you write "
<mytag>
</mytag>
use ":h xml-plugin.txt" for more functions;
Note: xmledit is a file-type plugin, which means it will be loaded and only worked when editing a xml file. If you open a temporary buffer or a file without extension "xml", this plugin will not work;
Comment
NERD Commenter: installation: git clone http://github.com/scrooloose/nerdcommenter.git
;
,c<space>: toggle comments on current line;
3,c<space>: toggle comments 3 lines from current line;
,cy: copy selected texts before comment out;
Ref: https://github.com/scrooloose/nerdcommenter
Surrounding Texts
installation: git clone git://github.com/tpope/vim-surround.git
;
Add Surroundings
S
S<target>
on
<copy todir="somepath"/>
<mkdir name="somedir"/>
results in:
<target>
<copy todir="somepath"/>
<mkdir name="somedir"/>
</target>
yss
yss<task>
on "hello world" results in yss"
results in "hello world";
ysiw
ysiw"
results in "hello" world;
Change Surroundings
cs...