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()
|
function AutoTrimWhitespace()
|
||||||
if exists("b:auto_trim_whitespace")
|
if exists("b:auto_trim_whitespace")
|
||||||
if b:auto_trim_whitespace == 1
|
if b:auto_trim_whitespace == 1
|
||||||
m'
|
let l:winview = winsaveview()
|
||||||
:%s/\s\+$//e
|
silent! %s/\s\+$//
|
||||||
''
|
call winrestview(l:winview)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue