Improving Vim omni completion
How can I add help information or improve omni completion in Vim?
For example, in a CSS file, when you type font
, omni completion could show the expected values: font-style font-variant font-we开发者_如何学Goight font-size/line-height font-family
I don't know how to do that with omni completion, but you could use the snipmate plugin (maybe with these packaged snippets) and add this snippet for css files :
font: ${1:font-style} ${2:font-variant} ${3:font-weight} ${4:font-size/line-height} ${5:font-family}
So that you can type:
font<tab>italic<tab><backspace><tab>normal<tab>12px<tab>sans-serif;
For css/html you could try Zen Coding http://code.google.com/p/zen-coding/
精彩评论