To: vim-dev@vim.org Subject: Patch 6.3b.006 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.3b.006 Problem: When using "mswin.vim", CTRL-V in Insert mode leaves cursor before last pasted character. (Mathew Davis) Solution: Use the same Paste() function as in menu.vim. Files: runtime/mswin.vim *** ../vim-6.3b.005/runtime/mswin.vim Sun May 16 22:38:59 2004 --- runtime/mswin.vim Wed May 26 17:11:52 2004 *************** *** 1,7 **** " Set options and add mapping such that Vim behaves a lot like MS-Windows " " Maintainer: Bram Moolenaar ! " Last change: 2003 May 17 " set the 'cpoptions' to its Vim default if 1 " only do this when compiled with expression evaluation --- 1,7 ---- " Set options and add mapping such that Vim behaves a lot like MS-Windows " " Maintainer: Bram Moolenaar ! " Last change: 2004 May 26 " set the 'cpoptions' to its Vim default if 1 " only do this when compiled with expression evaluation *************** *** 36,47 **** " Pasting blockwise and linewise selections is not possible in Insert and " Visual mode without the +virtualedit feature. They are pasted as if they " were characterwise instead. if has("virtualedit") nnoremap Paste :call Paste() func! Paste() let ove = &ve set ve=all ! normal `^"+gPi let &ve = ove endfunc inoremap