Mercurial > vim
comparison runtime/mswin.vim @ 3682:11d40fc82f11
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 12 Jul 2012 22:01:11 +0200 |
parents | 23f82b5d2814 |
children | 9910cbff5f16 |
comparison
equal
deleted
inserted
replaced
3681:d9573e846b47 | 3682:11d40fc82f11 |
---|---|
1 " Set options and add mapping such that Vim behaves a lot like MS-Windows | 1 " Set options and add mapping such that Vim behaves a lot like MS-Windows |
2 " | 2 " |
3 " Maintainer: Bram Moolenaar <Bram@vim.org> | 3 " Maintainer: Bram Moolenaar <Bram@vim.org> |
4 " Last change: 2006 Apr 02 | 4 " Last change: 2012 Jun 13 |
5 | 5 |
6 " bail out if this isn't wanted (mrsvim.vim uses this). | 6 " bail out if this isn't wanted (mrsvim.vim uses this). |
7 if exists("g:skip_loading_mswin") && g:skip_loading_mswin | 7 if exists("g:skip_loading_mswin") && g:skip_loading_mswin |
8 finish | 8 finish |
9 endif | 9 endif |
40 | 40 |
41 " Pasting blockwise and linewise selections is not possible in Insert and | 41 " Pasting blockwise and linewise selections is not possible in Insert and |
42 " Visual mode without the +virtualedit feature. They are pasted as if they | 42 " Visual mode without the +virtualedit feature. They are pasted as if they |
43 " were characterwise instead. | 43 " were characterwise instead. |
44 " Uses the paste.vim autoload script. | 44 " Uses the paste.vim autoload script. |
45 " Use CTRL-G u to have CTRL-Z only undo the paste. | |
45 | 46 |
46 exe 'inoremap <script> <C-V>' paste#paste_cmd['i'] | 47 exe 'inoremap <script> <C-V> <C-G>u' . paste#paste_cmd['i'] |
47 exe 'vnoremap <script> <C-V>' paste#paste_cmd['v'] | 48 exe 'vnoremap <script> <C-V>' . paste#paste_cmd['v'] |
48 | 49 |
49 imap <S-Insert> <C-V> | 50 imap <S-Insert> <C-V> |
50 vmap <S-Insert> <C-V> | 51 vmap <S-Insert> <C-V> |
51 | 52 |
52 " Use CTRL-Q to do what CTRL-V used to do | 53 " Use CTRL-Q to do what CTRL-V used to do |