a8e6dcd
To: vim-dev@vim.org
a8e6dcd
Subject: Patch 7.0.033
a8e6dcd
Fcc: outbox
a8e6dcd
From: Bram Moolenaar <Bram@moolenaar.net>
a8e6dcd
Mime-Version: 1.0
a8e6dcd
Content-Type: text/plain; charset=ISO-8859-1
a8e6dcd
Content-Transfer-Encoding: 8bit
a8e6dcd
------------
a8e6dcd
a8e6dcd
Patch 7.0.033
a8e6dcd
Problem:    When pasting text, with the menu or CTRL-V, autoindent is removed.
a8e6dcd
Solution:   Use "x<BS>" to avoid indent to be removed. (Benji Fisher)
a8e6dcd
Files:	    runtime/autoload/paste.vim
a8e6dcd
a8e6dcd
a8e6dcd
*** ../vim-7.0.032/runtime/autoload/paste.vim	Fri Apr 21 23:57:39 2006
a8e6dcd
--- runtime/autoload/paste.vim	Fri Jun 23 17:18:48 2006
a8e6dcd
***************
a8e6dcd
*** 1,6 ****
a8e6dcd
  " Vim support file to help with paste mappings and menus
a8e6dcd
  " Maintainer:	Bram Moolenaar <Bram@vim.org>
a8e6dcd
! " Last Change:	2006 Apr 21
a8e6dcd
  
a8e6dcd
  " Define the string to use for items that are present both in Edit, Popup and
a8e6dcd
  " Toolbar menu.  Also used in mswin.vim and macmap.vim.
a8e6dcd
--- 1,6 ----
a8e6dcd
  " Vim support file to help with paste mappings and menus
a8e6dcd
  " Maintainer:	Bram Moolenaar <Bram@vim.org>
a8e6dcd
! " Last Change:	2006 Jun 23
a8e6dcd
  
a8e6dcd
  " Define the string to use for items that are present both in Edit, Popup and
a8e6dcd
  " Toolbar menu.  Also used in mswin.vim and macmap.vim.
a8e6dcd
***************
a8e6dcd
*** 12,18 ****
a8e6dcd
  if has("virtualedit")
a8e6dcd
    let paste#paste_cmd = {'n': ":call paste#Paste()<CR>"}
a8e6dcd
    let paste#paste_cmd['v'] = '"-c<Esc>' . paste#paste_cmd['n']
a8e6dcd
!   let paste#paste_cmd['i'] = '<Esc>' . paste#paste_cmd['n'] . 'gi'
a8e6dcd
  
a8e6dcd
    func! paste#Paste()
a8e6dcd
      let ove = &ve
a8e6dcd
--- 12,18 ----
a8e6dcd
  if has("virtualedit")
a8e6dcd
    let paste#paste_cmd = {'n': ":call paste#Paste()<CR>"}
a8e6dcd
    let paste#paste_cmd['v'] = '"-c<Esc>' . paste#paste_cmd['n']
a8e6dcd
!   let paste#paste_cmd['i'] = 'x<BS><Esc>' . paste#paste_cmd['n'] . 'gi'
a8e6dcd
  
a8e6dcd
    func! paste#Paste()
a8e6dcd
      let ove = &ve
a8e6dcd
*** ../vim-7.0.032/src/version.c	Fri Jun 23 16:44:32 2006
a8e6dcd
--- src/version.c	Fri Jun 23 17:18:56 2006
a8e6dcd
***************
a8e6dcd
*** 668,669 ****
a8e6dcd
--- 668,671 ----
a8e6dcd
  {   /* Add new patch number below this line */
a8e6dcd
+ /**/
a8e6dcd
+     33,
a8e6dcd
  /**/
a8e6dcd
a8e6dcd
-- 
a8e6dcd
Yesterday, all my deadlines seemed so far away
a8e6dcd
now it looks as though it's freeze in four days
a8e6dcd
oh I believe in cvs..
a8e6dcd
    [ CVS log "Beatles style" for FreeBSD ports/INDEX, Satoshi Asami ]
a8e6dcd
a8e6dcd
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
a8e6dcd
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
a8e6dcd
\\\        download, build and distribute -- http://www.A-A-P.org        ///
a8e6dcd
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///