1
0
Quellcode durchsuchen

Highlight whitespace instead of autofixing it, set html highlighting for mustache files

Taddeus Kroes vor 9 Jahren
Ursprung
Commit
7f153c217c
1 geänderte Dateien mit 6 neuen und 1 gelöschten Zeilen
  1. 6 1
      vimrc

+ 6 - 1
vimrc

@@ -21,7 +21,7 @@ filetype plugin indent on
 syntax enable
 
 " Automatically remove all trailing whitespace
-autocmd BufWritePre * :%s/\s\+$//e
+"autocmd BufWritePre * :%s/\s\+$//e
 
 " Source completion
 " Automatically open and close the popup menu / preview window
@@ -64,6 +64,10 @@ set autoindent copyindent
 set shiftround
 set backspace=indent,eol,start
 
+" Highlight tabs and trailing spaces
+set listchars=tab:>\ ,trail:-
+set list
+
 " Don't give people epilepsy
 set visualbell t_vb= noerrorbells
 
@@ -151,6 +155,7 @@ autocmd BufNewFile,BufRead *.md set filetype=markdown
 autocmd BufNewFile,BufRead *.gv set filetype=dot
 autocmd BufNewFile,BufRead *.ll set filetype=llvm
 autocmd BufNewFile,BufRead *.inc set filetype=sh
+autocmd BufNewFile,BufRead *.mustache set filetype=html
 
 " Highlight and underline badly spelled words when spellcheck is on
 highlight SpellBad guisp=#fcaf3e cterm=underline