summaryrefslogtreecommitdiffstats
path: root/runtime/mswin.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-07-12 22:01:11 +0200
committerBram Moolenaar <Bram@vim.org>2012-07-12 22:01:11 +0200
commit30b658179962cc3c9f0a98f071b36b09a36c2b94 (patch)
tree65394aa7dfead6c415065471e17fefce6c8cd242 /runtime/mswin.vim
parentdfef15481db114779fde81dc577319d88557c13a (diff)
Updated runtime files.
Diffstat (limited to 'runtime/mswin.vim')
-rw-r--r--runtime/mswin.vim7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/mswin.vim b/runtime/mswin.vim
index 1ceef847e9..02edfbc4e3 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: 2006 Apr 02
+" Last change: 2012 Jun 13
" bail out if this isn't wanted (mrsvim.vim uses this).
if exists("g:skip_loading_mswin") && g:skip_loading_mswin
@@ -42,9 +42,10 @@ cmap <S-Insert> <C-R>+
" Visual mode without the +virtualedit feature. They are pasted as if they
" were characterwise instead.
" Uses the paste.vim autoload script.
+" Use CTRL-G u to have CTRL-Z only undo the paste.
-exe 'inoremap <script> <C-V>' paste#paste_cmd['i']
-exe 'vnoremap <script> <C-V>' paste#paste_cmd['v']
+exe 'inoremap <script> <C-V> <C-G>u' . paste#paste_cmd['i']
+exe 'vnoremap <script> <C-V>' . paste#paste_cmd['v']
imap <S-Insert> <C-V>
vmap <S-Insert> <C-V>