Improving Vim omni completion

929 Views Asked by At

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-weight font-size/line-height font-family

2

There are 2 best solutions below

0
On

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;
1
On

For css/html you could try Zen Coding http://code.google.com/p/zen-coding/