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:
parent
f39782a1ad
commit
45b9762bf5
1 changed files with 3 additions and 3 deletions
6
.vimrc
6
.vimrc
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue