Commit 566d4ccb authored by Nigel Kukard's avatar Nigel Kukard

Merge branch 'nkchanges' into 'master'

Added .sls file detection

See merge request !9
parents 0ffec960 8ba9d415
......@@ -45,6 +45,10 @@ function! WhitespaceHighlight()
if &filetype == 'python'
call matchadd('ExtraWhitespaces','^\t')
set colorcolumn=100
elseif &filetype == 'yaml'
call matchadd('ExtraWhitespaces',' \t')
call matchadd('ExtraWhitespaces','\t ')
set colorcolumn=132
elseif &filetype != ''
call matchadd('ExtraWhitespaces',' \t')
call matchadd('ExtraWhitespaces','\t ')
......@@ -57,6 +61,7 @@ endfunction
" Autocmd
au BufNewFile,BufRead * call WhitespaceHighlight()
au BufNewFile,BufRead *.sls set filetype=yaml | call WhitespaceHighlight()
au BufNewFile,BufRead *.md set filetype=markdown | call WhitespaceHighlight()
au BufNewFile,BufRead *.html.ep set filetype=php | call WhitespaceHighlight()
au BufNewFile,BufRead *.py set filetype=python | set expandtab softtabstop=4 | call WhitespaceHighlight()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment