added TrimWhiteSpace function, fixed html indenting
This commit is contained in:
@@ -85,3 +85,6 @@ function! SetCustomCommand()
|
|||||||
let s:customcommand = input('Enter Custom Command$ ')
|
let s:customcommand = input('Enter Custom Command$ ')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! TrimWhiteSpace()
|
||||||
|
%s/\s\+$//e
|
||||||
|
endfunction
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ if has("autocmd") && !exists("autocommands_loaded")
|
|||||||
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
|
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
|
||||||
autocmd FileType make setlocal ts=8 sts=8 sw=8 noexpandtab
|
autocmd FileType make setlocal ts=8 sts=8 sw=8 noexpandtab
|
||||||
autocmd FileType ruby setlocal ts=2 sts=2 sw=2 expandtab
|
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 FileType jade setlocal ts=2 sts=2 sw=2 noexpandtab
|
||||||
"autocmd WinEnter * setlocal cursorline
|
"autocmd WinEnter * setlocal cursorline
|
||||||
"autocmd WinLeave * setlocal nocursorline
|
"autocmd WinLeave * setlocal nocursorline
|
||||||
|
|||||||
Reference in New Issue
Block a user