Auto complete tags
installation: git clone https://github.com/sukima/xmledit.git, then make (unnecessary?)
when you write "", it will be converted to ""; if you write ">", it will be converted to:
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: toggle comments on current line;
3,c: 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 in linewise visual mode:
S<target>
on
results in:
yss: add surroundings to a line:
yss<task>
on "hello world" results in hello world, yss"
results in "hello world";
ysiw: add surroundings to a word:
ysiw"
results in "hello" world;
Change Surroundings
cs...