home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.0.164 < prev    next >
Encoding:
Internet Message Format  |  2002-02-02  |  4.5 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.164
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.0.164
  11. Problem:    After patch 6.0.135 the menu entries for pasting don't work in
  12.         Insert and Visual mode. (Muraoka Taro)
  13. Solution:   Add <script> to allow script-local mappings.
  14. Files:        runtime/menu.vim
  15.  
  16.  
  17. *** ../vim60.163/runtime/menu.vim    Mon Jan 28 16:11:30 2002
  18. --- runtime/menu.vim    Sun Feb  3 15:35:55 2002
  19. ***************
  20. *** 121,127 ****
  21.   " Visual mode without the +virtualedit feature.  They are pasted as if they
  22.   " were characterwise instead.
  23.   if has("virtualedit")
  24. !   nnoremap <silent> <SID>Paste :call <SID>Paste()<CR>
  25.     func! <SID>Paste()
  26.       let ove = &ve
  27.       set ve=all
  28. --- 121,127 ----
  29.   " Visual mode without the +virtualedit feature.  They are pasted as if they
  30.   " were characterwise instead.
  31.   if has("virtualedit")
  32. !   nnoremap <silent> <script> <SID>Paste :call <SID>Paste()<CR>
  33.     func! <SID>Paste()
  34.       let ove = &ve
  35.       set ve=all
  36. ***************
  37. *** 129,135 ****
  38.       let &ve = ove
  39.     endfunc
  40.   else
  41. !   nnoremap <silent> <SID>Paste "=@+.'xy'<CR>gPFx"_2x
  42.   endif
  43.   
  44.   " Edit menu
  45. --- 129,135 ----
  46.       let &ve = ove
  47.     endfunc
  48.   else
  49. !   nnoremap <silent> <script> <SID>Paste "=@+.'xy'<CR>gPFx"_2x
  50.   endif
  51.   
  52.   " Edit menu
  53. ***************
  54. *** 144,154 ****
  55.   nnoremenu 20.360 &Edit.&Paste<Tab>"+P        "+gP
  56.   cnoremenu     &Edit.&Paste<Tab>"+P        <C-R>+
  57.   if has("virtualedit")
  58. !   vnoremenu     &Edit.&Paste<Tab>"+P        "-c<Esc><SID>Paste
  59. !   inoremenu     &Edit.&Paste<Tab>"+P        <Esc><SID>Pastegi
  60.   else
  61. !   vnoremenu     &Edit.&Paste<Tab>"+P        "-c<Esc>gix<Esc><SID>Paste"_x
  62. !   inoremenu     &Edit.&Paste<Tab>"+P        x<Esc><SID>Paste"_s
  63.   endif
  64.   nnoremenu 20.370 &Edit.Put\ &Before<Tab>[p    [p
  65.   inoremenu     &Edit.Put\ &Before<Tab>[p    <C-O>[p
  66. --- 144,154 ----
  67.   nnoremenu 20.360 &Edit.&Paste<Tab>"+P        "+gP
  68.   cnoremenu     &Edit.&Paste<Tab>"+P        <C-R>+
  69.   if has("virtualedit")
  70. !   vnoremenu <script>     &Edit.&Paste<Tab>"+P    "-c<Esc><SID>Paste
  71. !   inoremenu <script>     &Edit.&Paste<Tab>"+P    <Esc><SID>Pastegi
  72.   else
  73. !   vnoremenu <script>     &Edit.&Paste<Tab>"+P    "-c<Esc>gix<Esc><SID>Paste"_x
  74. !   inoremenu <script>     &Edit.&Paste<Tab>"+P    x<Esc><SID>Paste"_s
  75.   endif
  76.   nnoremenu 20.370 &Edit.Put\ &Before<Tab>[p    [p
  77.   inoremenu     &Edit.Put\ &Before<Tab>[p    <C-O>[p
  78. ***************
  79. *** 732,742 ****
  80.   nnoremenu 1.40 PopUp.&Paste        "+gP
  81.   cnoremenu 1.40 PopUp.&Paste        <C-R>+
  82.   if has("virtualedit")
  83. !   vnoremenu 1.40 PopUp.&Paste        "-c<Esc><SID>Paste
  84. !   inoremenu 1.40 PopUp.&Paste        <Esc><SID>Pastegi
  85.   else
  86. !   vnoremenu 1.40 PopUp.&Paste        "-c<Esc>gix<Esc><SID>Paste"_x
  87. !   inoremenu 1.40 PopUp.&Paste        x<Esc><SID>Paste"_s
  88.   endif
  89.   vnoremenu 1.50 PopUp.&Delete        x
  90.   an 1.55 PopUp.-SEP2-            <Nop>
  91. --- 732,742 ----
  92.   nnoremenu 1.40 PopUp.&Paste        "+gP
  93.   cnoremenu 1.40 PopUp.&Paste        <C-R>+
  94.   if has("virtualedit")
  95. !   vnoremenu <script> 1.40 PopUp.&Paste    "-c<Esc><SID>Paste
  96. !   inoremenu <script> 1.40 PopUp.&Paste    <Esc><SID>Pastegi
  97.   else
  98. !   vnoremenu <script> 1.40 PopUp.&Paste    "-c<Esc>gix<Esc><SID>Paste"_x
  99. !   inoremenu <script> 1.40 PopUp.&Paste    x<Esc><SID>Paste"_s
  100.   endif
  101.   vnoremenu 1.50 PopUp.&Delete        x
  102.   an 1.55 PopUp.-SEP2-            <Nop>
  103. ***************
  104. *** 773,783 ****
  105.     nnoremenu 1.90 ToolBar.Paste        "+gP
  106.     cnoremenu     ToolBar.Paste        <C-R>+
  107.     if has("virtualedit")
  108. !     vnoremenu     ToolBar.Paste        "-c<Esc><SID>Paste
  109. !     inoremenu     ToolBar.Paste        <Esc><SID>Pastegi
  110.     else
  111. !     vnoremenu     ToolBar.Paste        "-c<Esc>gix<Esc><SID>Paste"_x
  112. !     inoremenu     ToolBar.Paste        x<Esc><SID>Paste"_s
  113.     endif
  114.   
  115.     if !has("gui_athena")
  116. --- 773,783 ----
  117.     nnoremenu 1.90 ToolBar.Paste        "+gP
  118.     cnoremenu     ToolBar.Paste        <C-R>+
  119.     if has("virtualedit")
  120. !     vnoremenu <script>     ToolBar.Paste    "-c<Esc><SID>Paste
  121. !     inoremenu <script>     ToolBar.Paste    <Esc><SID>Pastegi
  122.     else
  123. !     vnoremenu <script>     ToolBar.Paste    "-c<Esc>gix<Esc><SID>Paste"_x
  124. !     inoremenu <script>     ToolBar.Paste    x<Esc><SID>Paste"_s
  125.     endif
  126.   
  127.     if !has("gui_athena")
  128. *** ../vim60.163/src/version.c    Sun Feb  3 15:27:26 2002
  129. --- src/version.c    Sun Feb  3 15:39:07 2002
  130. ***************
  131. *** 608,609 ****
  132. --- 608,611 ----
  133.   {   /* Add new patch number below this line */
  134. + /**/
  135. +     164,
  136.   /**/
  137.  
  138. -- 
  139. "Hit any key to continue" is very confusing when you have two keyboards.
  140.  
  141.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  142. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  143.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  144.