|
|
@ -6,7 +6,7 @@ let g:rehash256 = 1 |
|
|
|
" Functions {{{ |
|
|
|
" Functions {{{ |
|
|
|
" Removes trailing spaces {{{{ |
|
|
|
" Removes trailing spaces {{{{ |
|
|
|
function TrimWhiteSpace() |
|
|
|
function TrimWhiteSpace() |
|
|
|
%s/\s+$// |
|
|
|
%s/\s\+$// |
|
|
|
'' |
|
|
|
'' |
|
|
|
endfunction |
|
|
|
endfunction |
|
|
|
" }}}} |
|
|
|
" }}}} |
|
|
@ -61,7 +61,7 @@ augroup python |
|
|
|
au FileType python au BufWritePre <buffer> %s/\s\+$//e " When saving a Python file, remove tailing spaces |
|
|
|
au FileType python au BufWritePre <buffer> %s/\s\+$//e " When saving a Python file, remove tailing spaces |
|
|
|
|
|
|
|
|
|
|
|
" Shortcut to add pylint disables |
|
|
|
" Shortcut to add pylint disables |
|
|
|
au FileType python iab pylint # pylint: disable |
|
|
|
au FileType python iab lint # pylint: disable |
|
|
|
augroup END |
|
|
|
augroup END |
|
|
|
" }}}} |
|
|
|
" }}}} |
|
|
|
|
|
|
|
|
|
|
@ -103,3 +103,4 @@ augroup shell |
|
|
|
au FileType sh setlocal softtabstop=4 " when deleting characters, consider 4 spaces as a tab |
|
|
|
au FileType sh setlocal softtabstop=4 " when deleting characters, consider 4 spaces as a tab |
|
|
|
augroup END |
|
|
|
augroup END |
|
|
|
" }}}} |
|
|
|
" }}}} |
|
|
|
|
|
|
|
" |
|
|
|