diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-11-10 22:09:11 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-11-10 22:09:11 +0100 |
commit | 5ef1c6a4838a9629b793f3ae676f72a764171b00 (patch) | |
tree | f496545a97dd3ce594f7771891c4471700cdcbe9 /runtime/menu.vim | |
parent | a9aa86ff951b7908b615a61a0e216901b96bc0eb (diff) | |
download | vim-git-5ef1c6a4838a9629b793f3ae676f72a764171b00.tar.gz |
Update runtime files
Diffstat (limited to 'runtime/menu.vim')
-rw-r--r-- | runtime/menu.vim | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/runtime/menu.vim b/runtime/menu.vim index 11d80b7d1..8a98d49a1 100644 --- a/runtime/menu.vim +++ b/runtime/menu.vim @@ -2,7 +2,7 @@ " You can also use this as a start for your own set of menus. " " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2019 Sep 26 +" Last Change: 2019 Nov 10 " Note that ":an" (short for ":anoremenu") is often used to make a menu work " in all modes and avoid side effects from mappings defined by the user. @@ -159,6 +159,9 @@ an 20.335 &Edit.-SEP1- <Nop> vnoremenu 20.340 &Edit.Cu&t<Tab>"+x "+x vnoremenu 20.350 &Edit.&Copy<Tab>"+y "+y cnoremenu 20.350 &Edit.&Copy<Tab>"+y <C-Y> +if exists(':tlmenu') + tlnoremenu 20.350 &Edit.&Copy<Tab>"+y <C-W>:<C-Y><CR> +endif nnoremenu 20.360 &Edit.&Paste<Tab>"+gP "+gP cnoremenu &Edit.&Paste<Tab>"+gP <C-R>+ if exists(':tlmenu') @@ -569,7 +572,7 @@ func! s:XxdConv() %!mc vim:xxd else call s:XxdFind() - exe '%!"' . g:xxdprogram . '"' + exe '%!' . g:xxdprogram endif if getline(1) =~ "^0000000:" " only if it worked set ft=xxd @@ -583,7 +586,7 @@ func! s:XxdBack() %!mc vim:xxd -r else call s:XxdFind() - exe '%!"' . g:xxdprogram . '" -r' + exe '%!' . g:xxdprogram . ' -r' endif set ft= doautocmd filetypedetect BufReadPost @@ -595,6 +598,9 @@ func! s:XxdFind() " On the PC xxd may not be in the path but in the install directory if has("win32") && !executable("xxd") let g:xxdprogram = $VIMRUNTIME . (&shellslash ? '/' : '\') . "xxd.exe" + if g:xxdprogram =~ ' ' + let g:xxdprogram = '"' .. g:xxdprogram .. '"' + endif else let g:xxdprogram = "xxd" endif |