Add codes below into ~/.vimrc:
let g:UltiSnipsEditSplit='vertical'
Plugin 'SirVer/ultisnips'
Plugin 'honza/vim-snippets'
Plugin 'mattn/emmet-vim'
Run vim +PluginClean +PluginInstall +qa
.
The folder of UltiSnips is about 6.1MB, emmet-vim is about 1.6MB.
UltiSnips is a vim snippet engine, while vim-snippets is a bunch of snippets definitions.
Use UltiSnipsEdit
to add a new snippet.
Use cl<TAB>
in a js file, to make it expand to console.log(...);
.
emmet-vim is a html editing tool.
For example open a new html file with html:5
, and press <C-y>,
,
you get a full html skeleton, which means emmet installed OK.