1

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

Teun Zengerink
  • 4,277
  • 5
  • 30
  • 32
nsbm
  • 5,842
  • 6
  • 30
  • 45
  • 3
    "*For example, in a CSS file, when you type 'font', omni completion could show the expected values*" Well, actually it shows. Type font and press CTRL-X CTRL-O – sidyll Jul 06 '11 at 21:46

2 Answers2

2

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;
Drasill
  • 3,917
  • 29
  • 30
-2

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

greg606
  • 491
  • 3
  • 17
  • A more appropriate link would have been http://www.vim.org/scripts/script.php?script_id=2981 – corvec Feb 02 '12 at 21:38