Friday, April 23, 2010

VIM - How to format Html source code

  1. :filetype indent on
  2. :set filetype=html
  3. :set shiftwidth=n (n = indent size)
  4. :set smartindent
  5. gg=G (gg = top of file, = is a shortcut of re-tindent, G = botton of file)

For 1,3,4 , you can predefine at .vimrc. While editing Html file, just do 2 and 5

No comments:

Collectd PostgreSQL Plugin

I couldn't find this link when searching with google https://www.collectd.org/documentation/manpages/collectd.conf.html#plugin-postgresql