3 ms·
I've started using a similar plugin called sparkup.vim, which I like it a lot. input:text followed by C-e creates <input..etc
by va_coder 17y ago
I've started using a similar plugin called sparkup.vim, which I like it a lot.
input:text followed by C-e creates <input..etc
- pkrumins 17y agoWow, the screencast is impressive: http://www.youtube.com/watch?v=Jw3jipcenKc http://www.youtube.com/watch?v=Jw3jipcenKc I'm putting this plugin on my to-review-and-perhaps-write-about list.
- sophacles 17y agoAwesome plugin. A cursory inspection indicates that they are complimentary tho. For instance, you use sparkup to add reams of html. But if it turns out you need to wrap a few elements in a div, ragtag might be better (e.g. add the <div> then navigate to wherever, and do the close). Unless of course sparkup ha that, and I haven't got there yet in the docs.
- graywh 17y agoIf you need to wrap some things in a div, you could also use another tpope plugin: surround.vim. Just visually select the items and just do this: s<div> Also, you can use motions, etc.
- anveo 17y agoGreat plugin, although it's ability to jump to the next empty tag was overriding with my tabbing/completion(probably conflicting with SuperTab) - so I remapped that functionality to Ctrl-i rather than Ctrl-n: let g:sparkupNextMapping = '<c-i>' So far that doesn't seem to be conflicting with anything...
- va_coder 17y agoBe sure to add the following to your vimrc :source ~/.vim/ftplugin/html/sparkup.vim
- graywh 17y agoNo, because then it will be used for all files. Instead, you need to turn on ftplugins with "filetype plugin on". Then it's only loaded for ft=html files.