home *** CD-ROM | disk | FTP | other *** search
- To: vim-dev@vim.org
- Subject: Patch 6.0.164
- Fcc: outbox
- From: Bram Moolenaar <Bram@moolenaar.net>
- MIME-Version: 1.0
- Content-Type: text/plain; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
- ------------
-
- Patch 6.0.164
- Problem: After patch 6.0.135 the menu entries for pasting don't work in
- Insert and Visual mode. (Muraoka Taro)
- Solution: Add <script> to allow script-local mappings.
- Files: runtime/menu.vim
-
-
- *** ../vim60.163/runtime/menu.vim Mon Jan 28 16:11:30 2002
- --- runtime/menu.vim Sun Feb 3 15:35:55 2002
- ***************
- *** 121,127 ****
- " Visual mode without the +virtualedit feature. They are pasted as if they
- " were characterwise instead.
- if has("virtualedit")
- ! nnoremap <silent> <SID>Paste :call <SID>Paste()<CR>
- func! <SID>Paste()
- let ove = &ve
- set ve=all
- --- 121,127 ----
- " Visual mode without the +virtualedit feature. They are pasted as if they
- " were characterwise instead.
- if has("virtualedit")
- ! nnoremap <silent> <script> <SID>Paste :call <SID>Paste()<CR>
- func! <SID>Paste()
- let ove = &ve
- set ve=all
- ***************
- *** 129,135 ****
- let &ve = ove
- endfunc
- else
- ! nnoremap <silent> <SID>Paste "=@+.'xy'<CR>gPFx"_2x
- endif
-
- " Edit menu
- --- 129,135 ----
- let &ve = ove
- endfunc
- else
- ! nnoremap <silent> <script> <SID>Paste "=@+.'xy'<CR>gPFx"_2x
- endif
-
- " Edit menu
- ***************
- *** 144,154 ****
- nnoremenu 20.360 &Edit.&Paste<Tab>"+P "+gP
- cnoremenu &Edit.&Paste<Tab>"+P <C-R>+
- if has("virtualedit")
- ! vnoremenu &Edit.&Paste<Tab>"+P "-c<Esc><SID>Paste
- ! inoremenu &Edit.&Paste<Tab>"+P <Esc><SID>Pastegi
- else
- ! vnoremenu &Edit.&Paste<Tab>"+P "-c<Esc>gix<Esc><SID>Paste"_x
- ! inoremenu &Edit.&Paste<Tab>"+P x<Esc><SID>Paste"_s
- endif
- nnoremenu 20.370 &Edit.Put\ &Before<Tab>[p [p
- inoremenu &Edit.Put\ &Before<Tab>[p <C-O>[p
- --- 144,154 ----
- nnoremenu 20.360 &Edit.&Paste<Tab>"+P "+gP
- cnoremenu &Edit.&Paste<Tab>"+P <C-R>+
- if has("virtualedit")
- ! vnoremenu <script> &Edit.&Paste<Tab>"+P "-c<Esc><SID>Paste
- ! inoremenu <script> &Edit.&Paste<Tab>"+P <Esc><SID>Pastegi
- else
- ! vnoremenu <script> &Edit.&Paste<Tab>"+P "-c<Esc>gix<Esc><SID>Paste"_x
- ! inoremenu <script> &Edit.&Paste<Tab>"+P x<Esc><SID>Paste"_s
- endif
- nnoremenu 20.370 &Edit.Put\ &Before<Tab>[p [p
- inoremenu &Edit.Put\ &Before<Tab>[p <C-O>[p
- ***************
- *** 732,742 ****
- nnoremenu 1.40 PopUp.&Paste "+gP
- cnoremenu 1.40 PopUp.&Paste <C-R>+
- if has("virtualedit")
- ! vnoremenu 1.40 PopUp.&Paste "-c<Esc><SID>Paste
- ! inoremenu 1.40 PopUp.&Paste <Esc><SID>Pastegi
- else
- ! vnoremenu 1.40 PopUp.&Paste "-c<Esc>gix<Esc><SID>Paste"_x
- ! inoremenu 1.40 PopUp.&Paste x<Esc><SID>Paste"_s
- endif
- vnoremenu 1.50 PopUp.&Delete x
- an 1.55 PopUp.-SEP2- <Nop>
- --- 732,742 ----
- nnoremenu 1.40 PopUp.&Paste "+gP
- cnoremenu 1.40 PopUp.&Paste <C-R>+
- if has("virtualedit")
- ! vnoremenu <script> 1.40 PopUp.&Paste "-c<Esc><SID>Paste
- ! inoremenu <script> 1.40 PopUp.&Paste <Esc><SID>Pastegi
- else
- ! vnoremenu <script> 1.40 PopUp.&Paste "-c<Esc>gix<Esc><SID>Paste"_x
- ! inoremenu <script> 1.40 PopUp.&Paste x<Esc><SID>Paste"_s
- endif
- vnoremenu 1.50 PopUp.&Delete x
- an 1.55 PopUp.-SEP2- <Nop>
- ***************
- *** 773,783 ****
- nnoremenu 1.90 ToolBar.Paste "+gP
- cnoremenu ToolBar.Paste <C-R>+
- if has("virtualedit")
- ! vnoremenu ToolBar.Paste "-c<Esc><SID>Paste
- ! inoremenu ToolBar.Paste <Esc><SID>Pastegi
- else
- ! vnoremenu ToolBar.Paste "-c<Esc>gix<Esc><SID>Paste"_x
- ! inoremenu ToolBar.Paste x<Esc><SID>Paste"_s
- endif
-
- if !has("gui_athena")
- --- 773,783 ----
- nnoremenu 1.90 ToolBar.Paste "+gP
- cnoremenu ToolBar.Paste <C-R>+
- if has("virtualedit")
- ! vnoremenu <script> ToolBar.Paste "-c<Esc><SID>Paste
- ! inoremenu <script> ToolBar.Paste <Esc><SID>Pastegi
- else
- ! vnoremenu <script> ToolBar.Paste "-c<Esc>gix<Esc><SID>Paste"_x
- ! inoremenu <script> ToolBar.Paste x<Esc><SID>Paste"_s
- endif
-
- if !has("gui_athena")
- *** ../vim60.163/src/version.c Sun Feb 3 15:27:26 2002
- --- src/version.c Sun Feb 3 15:39:07 2002
- ***************
- *** 608,609 ****
- --- 608,611 ----
- { /* Add new patch number below this line */
- + /**/
- + 164,
- /**/
-
- --
- "Hit any key to continue" is very confusing when you have two keyboards.
-
- /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\
- ((( Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim )))
- \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
-