]> git.donarmstrong.com Git - dsa-puppet.git/blob - tools/vim/after/syntax/puppet.vim
add tools directory
[dsa-puppet.git] / tools / vim / after / syntax / puppet.vim
1 setlocal noexpandtab
2 setlocal shiftwidth=2
3 setlocal tabstop=2
4
5 syn match puppetBadWhitespace /^ \+/            " leading spaces
6 syn match puppetBadWhitespace /\s\+$/           " trailing whitespace
7 syn match puppetBadWhitespace /[^\t]\zs\t\+/    " embedded tab
8 syn match puppetBadWhitespace /\t\zs \+/        " space(s) following tab
9 highlight puppetBadWhitespace ctermbg=red guibg=red
10
11 " Spellcheck in comments.
12 setlocal spell
13 syn match  puppetComment "\s*#.*$" contains=puppetTodo,@Spell
14 syn region puppetComment start="/\*" end="\*/" contains=puppetTodo,@Spell extend
15
16 " Play nicely with ctags.
17 setlocal iskeyword=@,48-57,_,:,-        " not strictly valid but required
18 setlocal tags=~/Projects/puppet/tags    " you probably need to change this