Screw the marks, this should work better

git-svn-id: http://photonzero.com/dotfiles/trunk@108 23f722f6-122a-0410-8cef-c75bd312dd78
This commit is contained in:
michener 2011-09-06 23:18:06 +00:00
parent f39782a1ad
commit 45b9762bf5

6
.vimrc
View file

@ -334,9 +334,9 @@ endfunction
function AutoTrimWhitespace()
if exists("b:auto_trim_whitespace")
if b:auto_trim_whitespace == 1
m'
:%s/\s\+$//e
''
let l:winview = winsaveview()
silent! %s/\s\+$//
call winrestview(l:winview)
endif
endif
endfunction