|
|
@ -120,6 +120,8 @@ set equalalways |
|
|
|
|
|
|
|
|
" Show a few lines of context around the cursor. |
|
|
" Show a few lines of context around the cursor. |
|
|
set scrolloff=5 |
|
|
set scrolloff=5 |
|
|
|
|
|
" Try to keep the cursor in the same column while scrolling |
|
|
|
|
|
set nostartofline |
|
|
|
|
|
|
|
|
set autochdir |
|
|
set autochdir |
|
|
set autoread |
|
|
set autoread |
|
|
@ -221,10 +223,10 @@ function! DeleteTrailingTWS() |
|
|
if &ft =~ 'diff' |
|
|
if &ft =~ 'diff' |
|
|
return |
|
|
return |
|
|
end |
|
|
end |
|
|
normal mb |
|
|
let l:view = winsaveview() |
|
|
silent %s/[ \t]*$//g |
|
|
silent %s/[ \t]*$//g |
|
|
silent %s/\s\+$//ge |
|
|
silent %s/\s\+$//ge |
|
|
normal 'b |
|
|
call winrestview(l:view) |
|
|
endfunction |
|
|
endfunction |
|
|
"[Make the scripts executable]" |
|
|
"[Make the scripts executable]" |
|
|
function! ChangeScriptMode() |
|
|
function! ChangeScriptMode() |
|
|
|