added TrimWhiteSpace function, fixed html indenting

This commit is contained in:
Nick Nisi
2013-07-16 19:45:37 -05:00
parent 4437f63d6d
commit 54c57bd322
2 changed files with 4 additions and 1 deletions

View File

@@ -85,3 +85,6 @@ function! SetCustomCommand()
let s:customcommand = input('Enter Custom Command$ ')
endfunction
function! TrimWhiteSpace()
%s/\s\+$//e
endfunction

View File

@@ -63,7 +63,7 @@ if has("autocmd") && !exists("autocommands_loaded")
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType make setlocal ts=8 sts=8 sw=8 noexpandtab
autocmd FileType ruby setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType html setlocal ts=4 sts=4 sw=4 expandtab indentkeys-=*<return>
autocmd FileType html setlocal ts=4 sts=4 sw=4 noexpandtab indentkeys-=*<return>
autocmd FileType jade setlocal ts=2 sts=2 sw=2 noexpandtab
"autocmd WinEnter * setlocal cursorline
"autocmd WinLeave * setlocal nocursorline