From 45b9762bf57970e197bcd659fc7117b0f8d497b2 Mon Sep 17 00:00:00 2001 From: michener Date: Tue, 6 Sep 2011 23:18:06 +0000 Subject: [PATCH] Screw the marks, this should work better git-svn-id: http://photonzero.com/dotfiles/trunk@108 23f722f6-122a-0410-8cef-c75bd312dd78 --- .vimrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.vimrc b/.vimrc index 36bd63e..1de8bf3 100644 --- a/.vimrc +++ b/.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