DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Vim Snippet Plugins


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.



Published

Oct 17, 2015

Last Updated

Jul 25, 2018

Category

Tech

Tags

  • plugin 16
  • snippet 1
  • vim 92

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor