Skip to content

Developer guide: vim tips

cwarden edited this page Oct 24, 2011 · 1 revision

Vim tips

  • For consistency with ThinkUp's coding conventions, add the following to your .vimrc:
autocmd BufNewFile,BufRead /path/to/ThinkUp/* set expandtab colorcolumn=120
autocmd BufNewFile,BufRead /path/to/ThinkUp/*.php set tabstop=4 shiftwidth=4
autocmd BufNewFile,BufRead /path/to/ThinkUp/*.{css,js,tpl} set tabstop=2 shiftwidth=2
Clone this wiki locally