To: vim-dev@vim.org Subject: Patch 6.1.166 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.166 Problem: When 'autoindent' is set and mswin.vim has been sourced, pasting with CTRL-V just after auto-indenting removes the indent. (Shlomi Fish) Solution: First insert an "x" and delete it again, so that the auto-indent remains. Files: runtime/mswin.vim *** ../vim61.165/runtime/mswin.vim Tue Mar 5 21:40:30 2002 --- runtime/mswin.vim Wed Aug 28 20:59:20 2002 *************** *** 1,7 **** " Set options and add mapping such that Vim behaves a lot like MS-Windows " " Maintainer: Bram Moolenaar ! " Last change: 2002 Mar 05 " 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: 2002 Aug 28 " set the 'cpoptions' to its Vim default if 1 " only do this when compiled with expression evaluation *************** *** 44,50 **** normal `^"+gPi let &ve = ove endfunc ! imap Pastegi vmap "-cPaste else nnoremap Paste "=@+.'xy'gPFx"_2x --- 44,50 ---- normal `^"+gPi let &ve = ove endfunc ! imap xPastegi vmap "-cPaste else nnoremap Paste "=@+.'xy'gPFx"_2x *** ../vim61.165/src/version.c Sat Aug 24 23:24:51 2002 --- src/version.c Wed Aug 28 21:04:20 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 166, /**/ -- ARTHUR: Who are you? TALL KNIGHT: We are the Knights Who Say "Ni"! BEDEVERE: No! Not the Knights Who Say "Ni"! "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///