summaryrefslogtreecommitdiff
path: root/runtime/mswin.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-12-28 22:39:57 +0000
committerBram Moolenaar <Bram@vim.org>2005-12-28 22:39:57 +0000
commitebefac63f30ac038c0c35d7f1b9257483ec41812 (patch)
tree63e6374375ebc6744379fba43c1c557187490143 /runtime/mswin.vim
parentcc984263d755d05a12c8391abff42c087237554e (diff)
downloadvim-git-ebefac63f30ac038c0c35d7f1b9257483ec41812.tar.gz
updated for version 7.0177v7.0177
Diffstat (limited to 'runtime/mswin.vim')
-rw-r--r--runtime/mswin.vim8
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/mswin.vim b/runtime/mswin.vim
index d82b67743..48458ed46 100644
--- a/runtime/mswin.vim
+++ b/runtime/mswin.vim
@@ -1,7 +1,7 @@
" Set options and add mapping such that Vim behaves a lot like MS-Windows
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last change: 2004 Jul 27
+" Last change: 2005 Dec 28
" bail out if this isn't wanted (mrsvim.vim uses this).
if exists("g:skip_loading_mswin") && g:skip_loading_mswin
@@ -54,7 +54,13 @@ if has("virtualedit")
let c = col(".")
normal i
if col(".") < c " compensate for i<ESC> moving the cursor left
+ " Avoid a beep when the text ends at the window edge.
+ let vb_save = &vb
+ let t_vb_save = &t_vb
+ set vb t_vb=
normal l
+ let &vb = vb_save
+ let &t_vb = t_vb_save
endif
let &ve = ove
endfunc