summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-09-11 22:56:44 +0200
committerBram Moolenaar <Bram@vim.org>2019-09-11 22:56:44 +0200
commit8fe1000e9c3438d0ff36cf2340f0f0e48f8fb89f (patch)
treeee4019696858c3da6321a53676c0544b44ffb993 /runtime
parent840d16fd36bfd1a9fac8200e3dc016b1e3f9c328 (diff)
downloadvim-git-8fe1000e9c3438d0ff36cf2340f0f0e48f8fb89f.tar.gz
Update runtime files
Diffstat (limited to 'runtime')
-rw-r--r--runtime/autoload/haskellcomplete.vim5
-rw-r--r--runtime/delmenu.vim7
-rw-r--r--runtime/doc/channel.txt5
-rw-r--r--runtime/doc/eval.txt2
-rw-r--r--runtime/doc/insert.txt4
-rw-r--r--runtime/doc/options.txt2
-rw-r--r--runtime/doc/popup.txt4
-rw-r--r--runtime/doc/tags3
-rw-r--r--runtime/doc/terminal.txt2
-rw-r--r--runtime/doc/testing.txt2
-rw-r--r--runtime/doc/todo.txt43
-rw-r--r--runtime/gvim.desktop1
-rw-r--r--runtime/lang/menu_chinese_gb.936.vim608
-rw-r--r--runtime/lang/menu_zh_cn.gb2312.vim268
-rw-r--r--runtime/lang/menu_zh_cn.utf-8.vim608
-rw-r--r--runtime/syntax/debchangelog.vim4
-rw-r--r--runtime/syntax/debcopyright.vim4
-rw-r--r--runtime/syntax/debsources.vim6
-rw-r--r--runtime/syntax/freebasic.vim33
-rw-r--r--runtime/syntax/sshconfig.vim4
-rw-r--r--runtime/syntax/vim.vim3
-rw-r--r--runtime/syntax/yaml.vim2
-rw-r--r--runtime/vim.desktop1
23 files changed, 879 insertions, 742 deletions
diff --git a/runtime/autoload/haskellcomplete.vim b/runtime/autoload/haskellcomplete.vim
index 520ab9370..48fbac7f9 100644
--- a/runtime/autoload/haskellcomplete.vim
+++ b/runtime/autoload/haskellcomplete.vim
@@ -2,7 +2,7 @@
" Language: Haskell
" Maintainer: Daniel Campoverde <alx@sillybytes.net>
" URL: https://github.com/alx741/haskellcomplete.vim
-" Last Change: 2018 Aug 26
+" Last Change: 2019 May 14
" Usage: setlocal omnifunc=haskellcomplete#Complete
@@ -63,6 +63,7 @@ function! haskellcomplete#Complete(findstart, base)
call add(l:matches, extension)
endif
endfor
+ let b:completingLangExtension = 0
return l:matches
endif
@@ -78,6 +79,7 @@ function! haskellcomplete#Complete(findstart, base)
call add(l:matches, flag)
endif
endfor
+ let b:completingOptionsGHC = 0
return l:matches
endif
@@ -93,6 +95,7 @@ function! haskellcomplete#Complete(findstart, base)
call add(l:matches, module)
endif
endfor
+ let b:completingModule = 0
return l:matches
endif
diff --git a/runtime/delmenu.vim b/runtime/delmenu.vim
index 5cefe26d3..137218264 100644
--- a/runtime/delmenu.vim
+++ b/runtime/delmenu.vim
@@ -2,7 +2,7 @@
" Warning: This also deletes all menus defined by the user!
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last Change: 2001 May 27
+" Last Change: 2019 Sep 11
aunmenu *
tlunmenu *
@@ -21,6 +21,11 @@ silent! unlet menutrans_path_dialog
silent! unlet menutrans_tags_dialog
silent! unlet menutrans_textwidth_dialog
silent! unlet menutrans_fileformat_dialog
+silent! unlet menutrans_fileformat_choices
silent! unlet menutrans_no_file
+silent! unlet menutrans_set_lang_to
+silent! unlet menutrans_spell_change_ARG_to
+silent! unlet menutrans_spell_add_ARG_to_word_list
+silent! unlet menutrans_spell_ignore_ARG
" vim: set sw=2 :
diff --git a/runtime/doc/channel.txt b/runtime/doc/channel.txt
index 9b36c0724..8767d8714 100644
--- a/runtime/doc/channel.txt
+++ b/runtime/doc/channel.txt
@@ -1,4 +1,4 @@
-*channel.txt* For Vim version 8.1. Last change: 2019 Aug 22
+*channel.txt* For Vim version 8.1. Last change: 2019 Sep 11
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -508,6 +508,9 @@ ch_evalexpr({handle}, {expr} [, {options}]) *ch_evalexpr()*
expression. When there is an error or timeout it returns an
empty string.
+ Note that while waiting for the response, Vim handles other
+ messages. You need to make sure this doesn't cause trouble.
+
Can also be used as a |method|: >
GetChannel()->ch_evalexpr(expr)
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index f19e0c04a..8cb2af1e6 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1,4 +1,4 @@
-*eval.txt* For Vim version 8.1. Last change: 2019 Sep 06
+*eval.txt* For Vim version 8.1. Last change: 2019 Sep 10
VIM REFERENCE MANUAL by Bram Moolenaar
diff --git a/runtime/doc/insert.txt b/runtime/doc/insert.txt
index 82691e8fc..47c40a2f8 100644
--- a/runtime/doc/insert.txt
+++ b/runtime/doc/insert.txt
@@ -1,4 +1,4 @@
-*insert.txt* For Vim version 8.1. Last change: 2019 Aug 21
+*insert.txt* For Vim version 8.1. Last change: 2019 Sep 08
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1124,7 +1124,7 @@ is used when the info popup is created. The option is a comma separated list
of values:
height maximum height of the popup
width maximum width of the popup
- highlight highlight group of the popup (default is Pmenu)
+ highlight highlight group of the popup (default is PmenuSel)
align "item" (default) or "menu"
border "on" (default) or "off"
Example: >
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index c7247ff9d..0c8589f74 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -1,4 +1,4 @@
-*options.txt* For Vim version 8.1. Last change: 2019 Aug 21
+*options.txt* For Vim version 8.1. Last change: 2019 Sep 09
VIM REFERENCE MANUAL by Bram Moolenaar
diff --git a/runtime/doc/popup.txt b/runtime/doc/popup.txt
index cff3b9e52..8f1eb5c56 100644
--- a/runtime/doc/popup.txt
+++ b/runtime/doc/popup.txt
@@ -1,4 +1,4 @@
-*popup.txt* For Vim version 8.1. Last change: 2019 Sep 04
+*popup.txt* For Vim version 8.1. Last change: 2019 Sep 08
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -204,7 +204,7 @@ popup_beval({what}, {options}) *popup_beval()*
\ mousemoved: 'WORD',
\ })
< Use {options} to change the properties.
- See |popup_beval_example| for an example use.
+ See |popup_beval_example| for an example.
Can also be used as a |method|: >
GetText()->popup_beval({})
diff --git a/runtime/doc/tags b/runtime/doc/tags
index e343579b9..ab0215e7e 100644
--- a/runtime/doc/tags
+++ b/runtime/doc/tags
@@ -183,9 +183,11 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
'csverb' options.txt /*'csverb'*
'cuc' options.txt /*'cuc'*
'cul' options.txt /*'cul'*
+'culopt' options.txt /*'culopt'*
'cursorbind' options.txt /*'cursorbind'*
'cursorcolumn' options.txt /*'cursorcolumn'*
'cursorline' options.txt /*'cursorline'*
+'cursorlineopt' options.txt /*'cursorlineopt'*
'cwh' options.txt /*'cwh'*
'debug' options.txt /*'debug'*
'deco' options.txt /*'deco'*
@@ -9968,6 +9970,7 @@ win_gotoid() eval.txt /*win_gotoid()*
win_id2tabwin() eval.txt /*win_id2tabwin()*
win_id2win() eval.txt /*win_id2win()*
win_screenpos() eval.txt /*win_screenpos()*
+win_splitmove() eval.txt /*win_splitmove()*
winbufnr() eval.txt /*winbufnr()*
wincol() eval.txt /*wincol()*
window windows.txt /*window*
diff --git a/runtime/doc/terminal.txt b/runtime/doc/terminal.txt
index 2484b73e9..b6fba8b38 100644
--- a/runtime/doc/terminal.txt
+++ b/runtime/doc/terminal.txt
@@ -1,4 +1,4 @@
-*terminal.txt* For Vim version 8.1. Last change: 2019 Jul 04
+*terminal.txt* For Vim version 8.1. Last change: 2019 Sep 08
VIM REFERENCE MANUAL by Bram Moolenaar
diff --git a/runtime/doc/testing.txt b/runtime/doc/testing.txt
index 82fe64e7a..10334f314 100644
--- a/runtime/doc/testing.txt
+++ b/runtime/doc/testing.txt
@@ -1,4 +1,4 @@
-*testing.txt* For Vim version 8.1. Last change: 2019 Aug 21
+*testing.txt* For Vim version 8.1. Last change: 2019 Sep 08
VIM REFERENCE MANUAL by Bram Moolenaar
diff --git a/runtime/doc/todo.txt b/runtime/doc/todo.txt
index bb3b927ff..754f09cde 100644
--- a/runtime/doc/todo.txt
+++ b/runtime/doc/todo.txt
@@ -1,4 +1,4 @@
-*todo.txt* For Vim version 8.1. Last change: 2019 Sep 07
+*todo.txt* For Vim version 8.1. Last change: 2019 Sep 10
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -38,6 +38,8 @@ browser use: https://github.com/vim/vim/issues/1234
*known-bugs*
-------------------- Known bugs and current work -----------------------
+Split off part of option.c: #4918
+
Popup windows:
- Implement flip option
- Why does 'nrformats' leak from the popup window buffer???
@@ -132,14 +134,12 @@ Remove check for cmd_silent when calling search_stat()? (Gary Johnson)
undo result wrong: Masato Nishihata, #4798
-Sound: support on Mac? Or does libcanberra work there?
+Undo puts cursor in wrong line after "cG<Esc>" undo.
-Patch to add win_splitmove() function. (Andy Massimino, #4561)
+Sound: support on Mac? Or does libcanberra work there?
Patch for #4733: #4734. Test needs improvements.
-Add CmdwinLeavePost (#4762). Also add WinLeavePost then?
-
Patch to fix session file when using multiple tabs. (Jason Franklin, 2019 May
20)
Also put :argadd commands at the start for all buffers, so that their order
@@ -157,15 +157,6 @@ Ready to include now?
Adding "10" to 'spellsuggest' causes spell suggestions to become very slow.
(#4087)
-Patch to support 'cursorlineopt' - only highlight the line number of the
-cursor line: #4693
-
-Let plugins know how much space is available in the last line before
-triggering the hit-enter prompt. Internally called "sc_col".
-(Daniel Hahler, #4732)
-
-Patch for Template string: #4491 Not ready yet. New pull: #4634
-
":bnext" in a help buffer is supposed to go to the next help buffer, but it
goes to any buffer, and then :bnext skips help buffers, since they are
unlisted. (#4478)
@@ -191,9 +182,18 @@ with packages under "start". (xtal8, #1994)
Modeless selection doesn't work in gvim. (#4783)
Caused by patch 8.1.1534.
+Patch to add random number generator. (Hong Xu, 2010 Nov 8, update Nov 10)
+Alternative from Christian Brabandt. (2010 Sep 19)
+New one from Yasuhiro Matsumoto, #1277.
+
Visual highlight not removed when 'dipslay' is "lastline" and line doesn't
fit. (Kevin Lawler, #4457)
+Patch to add interrupt(). (Yasuhiro Matsumoto, #2834)
+
+Patch to add per-tabpage and per-window previous directory: "lcd -" and "tcd
+-". (Yegappan Lakshmanan, #4362)
+
Does not build with MinGW out of the box:
- _stat64 is not defined, need to use "struct stat" in vim.h
- WINVER conflict, should use 0x0600 by default?
@@ -203,6 +203,11 @@ Crash when mixing matchadd and substitute()? (Max Christian Pohle, 2018 May
Check_external_diff() is used too often. (Daniel Hahler, #4800)
+Incorrect formatting with autoindent. (Sebastian Gniazdowski, #4909)
+
+Patch to sort buffers on b_last_used time. (Andy Massimino, #4722)
+Needs a test.
+
Errors found with random data:
heap-buffer-overflow in alist_add (#2472)
@@ -311,6 +316,9 @@ Support setting the character displayed below the last line? Neovim uses
Check: __attribute__((format(printf, on semsg() and siemsg(). Where was this
added?
+Patch to add a flatten() function. #3676. Check that the doc explains the
+maxdepth argument (applies to the input "recursiveness").
+
Add test for urxvt mouse codes. Also test that mouse coordinates can be
negative. (see #4326)
@@ -639,6 +647,9 @@ Jan 15, #2555)
":bufdo e" disabled syntax HL in windows other than the current. (BPJ)
+Patch for Template string: #4491. New pull: #4634
+It's an awful lot of code for something that is just a bit nicer syntax.
+
Check argument of systemlist(). (Pavlov)
No maintainer for Vietnamese translations.
@@ -989,10 +1000,6 @@ somewhere else. :{range}copy {dest} !cmd
Patch to fix that empty first tab is not in session.
(Hirohito Higashi, 2016 Nov 25, #1282)
-Patch to add random number generator. (Hong Xu, 2010 Nov 8, update Nov 10)
-Alternative from Christian Brabandt. (2010 Sep 19)
-New one from Yasuhiro Matsumoto, #1277.
-
Patch to fix escaping of job arguments. (Yasuhiro Matsumoto, 2016 Oct 5)
Update Oct 14: https://gist.github.com/mattn/d47e7d3bfe5ade4be86062b565a4bfca
Update Aug 2017: #1954
diff --git a/runtime/gvim.desktop b/runtime/gvim.desktop
index 91a5e7a4f..7805cd584 100644
--- a/runtime/gvim.desktop
+++ b/runtime/gvim.desktop
@@ -20,6 +20,7 @@ Comment=Edit text files
GenericName[da]=Teksteditor
GenericName[fr]=Éditeur de texte
GenericName[pl]=Edytor tekstu
+GenericName[sr]=Едитор текста
GenericName[is]=Ritvinnsluforrit
Comment[af]=Redigeer tekslêers
Comment[am]=የጽሑፍ ፋይሎች ያስተካክሉ
diff --git a/runtime/lang/menu_chinese_gb.936.vim b/runtime/lang/menu_chinese_gb.936.vim
index b3276b536..d96ab3780 100644
--- a/runtime/lang/menu_chinese_gb.936.vim
+++ b/runtime/lang/menu_chinese_gb.936.vim
@@ -1,270 +1,452 @@
" Menu Translations: Simplified Chinese
" Maintainer: Shun Bai <baishunde@gmail.com>
" Previous Maintainer: Yuheng Xie <elephant@linux.net.cn>
-" Last Change: 2014 Oct 15
-
-" vim: ts=8 sw=8 noet
+" Last Change: 2019-09-10
" Quit when menu translations have already been done.
if exists("did_menu_trans")
finish
endif
let did_menu_trans = 1
-let s:keepcpo= &cpo
+let s:keepcpo = &cpo
set cpo&vim
scriptencoding cp936
" Help menu
-menutrans &Help (&H)
-menutrans &Overview<Tab><F1> (&O)<Tab><F1>
-menutrans &User\ Manual ûֲ(&U)
-menutrans &How-to\ links How-to\ ָ(&H)
-menutrans &Find\.\.\. (&F)\.\.\.
-menutrans &Credits л(&C)
-menutrans Co&pying Ȩ(&P)
-menutrans &Sponsor/Register /ע(&S)
-menutrans O&rphans ¶(&R)
-menutrans &Version 汾(&V)
-menutrans &About (&A)
+menutrans &Help (&H)
+" Help menuitems and dialog {{{1
+menutrans &Overview<Tab><F1> (&O)<Tab><F1>
+menutrans &User\ Manual ûֲ(&U)
+menutrans &How-to\ Links ʹ(&H)
+menutrans &Find\.\.\. (&F)\.\.\.
+menutrans &Credits л(&C)
+menutrans Co&pying Ȩ(&P)
+menutrans &Sponsor/Register /ע(&S)
+menutrans O&rphans ȹ¶(&R)
+menutrans &Version 汾(&V)
+menutrans &About (&A)
+
+" fun! s:Helpfind()
+if !exists("g:menutrans_help_dialog")
+ let g:menutrans_help_dialog = "򵥴Իð:\n\nǰ׺ i_ ʾģʽµ(: i_CTRL-X)\nǰ׺ c_ ʾµı༭(: c_<Del>)\nǰ׺ ' ʾѡ(: 'shiftwidth')"
+endif
+" }}}
" File menu
-menutrans &File ļ(&F)
-menutrans &Open\.\.\.<Tab>:e (&O)\.\.\.<Tab>:e
-menutrans Sp&lit-Open\.\.\.<Tab>:sp ָ(&L)\.\.\.<Tab>:sp
-menutrans Open\ Tab\.\.\.<Tab>:tabnew 򿪱ǩ\.\.\.<Tab>:tabnew
-menutrans &New<Tab>:enew ½(&N)<Tab>:enew
-menutrans &Close<Tab>:close ر(&C)<Tab>:close
-menutrans &Save<Tab>:w (&S)<Tab>:w
-menutrans Save\ &As\.\.\.<Tab>:sav Ϊ(&A)\.\.\.<Tab>:sav
-menutrans Split\ &Diff\ with\.\.\. ָȽ(Diff)(&D)\.\.\.
-menutrans Split\ Patched\ &By\.\.\. ָ򲹶(Patch)(&B)\.\.\.
-menutrans &Print ӡ(&P)
-menutrans Sa&ve-Exit<Tab>:wqa 沢˳(&V)<Tab>:wqa
-menutrans E&xit<Tab>:qa ˳(&X)<Tab>:qa
+menutrans &File ļ(&F)
+" File menuitems {{{1
+menutrans &Open\.\.\.<Tab>:e (&O)\.\.\.<Tab>:e
+menutrans Sp&lit-Open\.\.\.<Tab>:sp ڲִڴ(&L)\.\.\.<Tab>:sp
+menutrans Open\ Tab\.\.\.<Tab>:tabnew ڱǩҳ\.\.\.<Tab>:tabnew
+menutrans &New<Tab>:enew ½(&N)<Tab>:enew
+menutrans &Close<Tab>:close ر(&C)<Tab>:close
+menutrans &Save<Tab>:w (&S)<Tab>:w
+menutrans Save\ &As\.\.\.<Tab>:sav Ϊ(&A)\.\.\.<Tab>:sav
+menutrans Split\ &Diff\ With\.\.\. ִԶԱȲ(Diff)(&D)\.\.\.
+menutrans Split\ Patched\ &By\.\.\. ִԽ޲(Patch)(&B)\.\.\.
+menutrans &Print ӡ(&P)
+menutrans Sa&ve-Exit<Tab>:wqa 沢˳(&V)<Tab>:wqa
+menutrans E&xit<Tab>:qa ˳(&X)<Tab>:qa
+" }}}
" Edit menu
-menutrans &Edit ༭(&E)
-menutrans &Undo<Tab>u (&U)<Tab>u
-menutrans &Redo<Tab>^R (&R)<Tab>^R
-menutrans Rep&eat<Tab>\. ظϴβ(&E)<Tab>\.
-menutrans Cu&t<Tab>"+x (&T)<Tab>"+x
-menutrans &Copy<Tab>"+y (&C)<Tab>"+y
-menutrans &Paste<Tab>"+gP ճ(&P)<Tab>"+gP
-menutrans Put\ &Before<Tab>[p ճǰ(&B)<Tab>[p
-menutrans Put\ &After<Tab>]p ճ(&A)<Tab>]p
-menutrans &Delete<Tab>x ɾ(&D)<Tab>x
-menutrans &Select\ All<Tab>ggVG ȫѡ(&S)<Tab>ggVG
-menutrans &Find\.\.\. (&F)\.\.\.
-menutrans Find\ and\ Rep&lace\.\.\. Һ滻(&L)\.\.\.
-menutrans &Find<Tab>/ (&F)<Tab>/
-menutrans Find\ and\ Rep&lace<Tab>:%s Һ滻(&L)<Tab>:%s
-menutrans Settings\ &Window 趨(&W)
-menutrans Startup\ &Settings 趨(&S)
-menutrans &Global\ Settings ȫ趨(&G)
+menutrans &Edit ༭(&E)
+" Edit menuitems {{{1
+menutrans &Undo<Tab>u (&U)<Tab>u
+menutrans &Redo<Tab>^R ָ(&R)<Tab>^R
+menutrans Rep&eat<Tab>\. ظ(&E)<Tab>\.
+menutrans Cu&t<Tab>"+x (&T)<Tab>"+x
+menutrans &Copy<Tab>"+y (&C)<Tab>"+y
+menutrans &Paste<Tab>"+gP ճ(&P)<Tab>"+gP
+menutrans Put\ &Before<Tab>[p ճǰ(&B)<Tab>[p
+menutrans Put\ &After<Tab>]p ճ(&A)<Tab>]p
+menutrans &Delete<Tab>x ɾ(&D)<Tab>x
+menutrans &Select\ All<Tab>ggVG ȫѡ(&S)<Tab>ggVG
+menutrans &Find\.\.\. (&F)\.\.\.
+menutrans Find\ and\ Rep&lace\.\.\. Һ滻(&L)\.\.\.
+menutrans &Find<Tab>/ (&F)<Tab>/
+menutrans Find\ and\ Rep&lace<Tab>:%s Һ滻(&L)<Tab>:%s
+menutrans Settings\ &Window ô(&W)
+menutrans Startup\ &Settings (&S)
" Edit/Global Settings
-menutrans Toggle\ Pattern\ &Highlight<Tab>:set\ hls! /ģʽ(&H)<Tab>:set\ hls!
-menutrans Toggle\ &Ignore-case<Tab>:set\ ic! /غԴСд(&I)<Tab>:set\ ic!
-menutrans Toggle\ &Showmatch<Tab>:set\ sm! /ʾ(&S)<Tab>:set\ sm!
-menutrans &Context\ lines (&C)
-
-menutrans &Virtual\ Edit ༭(&V)
+menutrans &Global\ Settings ȫ(&G)
+" Edit.Global Settings menuitems and dialogs {{{2
+menutrans Toggle\ Pattern\ &Highlight<Tab>:set\ hls! /ظ(&H)<Tab>:set\ hls!
+menutrans Toggle\ &Ignoring\ Case<Tab>:set\ ic! /غԴСд(&I)<Tab>:set\ ic!
+menutrans Toggle\ &Showing\ Matched\ Pairs<Tab>:set\ sm! /ʾƥ(&S)<Tab>:set\ sm!
+menutrans &Context\ Lines (&C)
+menutrans &Virtual\ Edit ༭(&V)
+" Edit.Global Settings.Virtual Edit menuitems {{{3
menutrans Never Ӳ
-menutrans Block\ Selection ѡ
-menutrans Insert\ mode ģʽ
-menutrans Block\ and\ Insert ѡͲģʽ
-menutrans Always
-
-menutrans Toggle\ Insert\ &Mode<Tab>:set\ im! /زģʽ(&M)<Tab>:set\ im!
-menutrans Toggle\ Vi\ C&ompatible<Tab>:set\ cp! /\ Vi\ <Tab>:set\ cp!
-menutrans Search\ &Path\.\.\. ·(&P)\.\.\.
-menutrans Ta&g\ Files\.\.\. Tag\ ļ(&T)\.\.\.
+menutrans Block\ Selection ֻѡοʱ
+menutrans Insert\ Mode ֻڲģʽʱ
+menutrans Block\ and\ Insert ѡοͲģʽʱ
+menutrans Always ʼ
+" }}}
+menutrans Toggle\ Insert\ &Mode<Tab>:set\ im! /زģʽ(&M)<Tab>:set\ im!
+menutrans Toggle\ Vi\ C&ompatibility<Tab>:set\ cp! /\ Vi\ (&O)<Tab>:set\ cp!
+menutrans Search\ &Path\.\.\. ·(&P)\.\.\.
+menutrans Ta&g\ Files\.\.\. ļ(Tags)(&G)\.\.\.
" GUI options
-menutrans Toggle\ &Toolbar /ع(&T)
-menutrans Toggle\ &Bottom\ Scrollbar /صײ(&B)
-menutrans Toggle\ &Left\ Scrollbar /˹(&L)
-menutrans Toggle\ &Right\ Scrollbar /Ҷ˹(&R)
+menutrans Toggle\ &Toolbar /ع(&T)
+menutrans Toggle\ &Bottom\ Scrollbar /صײ(&B)
+menutrans Toggle\ &Left\ Scrollbar /(&L)
+menutrans Toggle\ &Right\ Scrollbar /Ҳ(&R)
-" Edit/File Settings
-menutrans F&ile\ Settings ļ趨(&I)
+" fun! s:SearchP()
+if !exists("g:menutrans_path_dialog")
+ let g:menutrans_path_dialog = "·\nöŷָĿ¼"
+endif
+
+" fun! s:TagFiles()
+if !exists("g:menutrans_tags_dialog")
+ let g:menutrans_tags_dialog = "ļ(Tags)ơ\nöŷָļ"
+endif
+" }}}
+" Edit/File Settings
+menutrans F&ile\ Settings ļ(&I)
+" Edit.File Settings menuitems and dialogs {{{2
" Boolean options
-menutrans Toggle\ Line\ &Numbering<Tab>:set\ nu! /ʾк(&N)<Tab>:set\ nu!
-menutrans Toggle\ relati&ve\ Line\ Numbering<Tab>:set\ rnu! /к(&V)<Tab>:set\ rnu!
-menutrans Toggle\ &List\ Mode<Tab>:set\ list! /\ list\ ģʽ(&L)<Tab>:set\ list!
-menutrans Toggle\ Line\ &Wrap<Tab>:set\ wrap! /(&W)<Tab>:set\ wrap!
-menutrans Toggle\ W&rap\ at\ word<Tab>:set\ lbr! /(&R)<Tab>:set\ lbr!
-menutrans Toggle\ &expand-tab<Tab>:set\ et! /չ\ tab(&E)<Tab>:set\ et!
-menutrans Toggle\ &auto-indent<Tab>:set\ ai! /Զ(&A)<Tab>:set\ ai!
-menutrans Toggle\ &C-indenting<Tab>:set\ cin! /\ C\ (&C)<Tab>:set\ cin!
+menutrans Toggle\ Line\ &Numbering<Tab>:set\ nu! /к(&N)<Tab>:set\ nu!
+menutrans Toggle\ Relati&ve\ Line\ Numbering<Tab>:set\ rnu! /к(&V)<Tab>:set\ rnu!
+menutrans Toggle\ &List\ Mode<Tab>:set\ list! /бģʽ(&L)<Tab>:set\ list!
+menutrans Toggle\ Line\ &Wrapping<Tab>:set\ wrap! /ػ(&W)<Tab>:set\ wrap!
+menutrans Toggle\ W&rapping\ at\ Word<Tab>:set\ lbr! /شβ(&R)<Tab>:set\ lbr!
+menutrans Toggle\ Tab\ &Expanding<Tab>:set\ et! /Ʊչ(&E)<Tab>:set\ et!
+menutrans Toggle\ &Auto\ Indenting<Tab>:set\ ai! /Զ(&A)<Tab>:set\ ai!
+menutrans Toggle\ &C-Style\ Indenting<Tab>:set\ cin! /\ C\ ʽ(&C)<Tab>:set\ cin!
" other options
-menutrans &Shiftwidth (&S)
-menutrans Soft\ &Tabstop Soft\ Tab\ (&T)
-menutrans Te&xt\ Width\.\.\. ı(&X)\.\.\.
-menutrans &File\ Format\.\.\. ļʽ(&F)\.\.\.
-menutrans C&olor\ Scheme ɫ(&O)
-menutrans Select\ Fo&nt\.\.\. ѡ(&N)\.\.\.
-menutrans &Keymap ӳ(&K)
+menutrans &Shiftwidth (&S)
+menutrans Soft\ &Tabstop Ʊλ(Soft Tabstop)(&T)
+menutrans Te&xt\ Width\.\.\. ı(&X)\.\.\.
+menutrans &File\ Format\.\.\. ļʽ(&F)\.\.\.
+
+" fun! s:TextWidth()
+if !exists("g:menutrans_textwidth_dialog")
+ let g:menutrans_textwidth_dialog = "ı(ÿַ0 ʾ):"
+endif
+
+" fun! s:FileFormat()
+if !exists("g:menutrans_fileformat_dialog")
+ let g:menutrans_fileformat_dialog = "ѡļıʽ:"
+endif
+if !exists("g:menutrans_fileformat_choices")
+ let g:menutrans_fileformat_choices = "&Unix\n&Dos\n&Mac\nȡ(&C)"
+endif
+" }}}
+menutrans Show\ C&olor\ Schemes\ in\ Menu ڲ˵ʾɫ(&O)
+menutrans C&olor\ Scheme ɫ(&O)
+menutrans Show\ &Keymaps\ in\ Menu ڲ˵ʾӳ(&K)
+menutrans &Keymap ӳ(&K)
+menutrans Select\ Fo&nt\.\.\. ѡ(&N)\.\.\.
+" }}}
" Programming menu
-menutrans &Tools (&T)
-menutrans &Jump\ to\ this\ tag<Tab>g^] ת\ tag(&J)<Tab>g^]
-menutrans Jump\ &back<Tab>^T ת(&B)<Tab>^T
-menutrans Build\ &Tags\ File \ Tags\ ļ(&T)
+menutrans &Tools (&T)
+" Tools menuitems {{{1
+menutrans &Jump\ to\ This\ Tag<Tab>g^] ת(Tag)(&J)<Tab>g^]
+menutrans Jump\ &Back<Tab>^T ת(&B)<Tab>^T
+menutrans Build\ &Tags\ File ɱļ(Tags)(&T)
" Tools.Spelling Menu
-menutrans &Spelling ƴд(&S)
-menutrans &Spell\ Check\ On ƴд(&S)
-menutrans Spell\ Check\ &Off رƴд(&O)
-menutrans To\ &Next\ error<Tab>]s һ(&N)<Tab>]s
-menutrans To\ &Previous\ error<Tab>[s һ(&P)<Tab>[s
-menutrans Suggest\ &Corrections<Tab>z= (&C)<Tab>z=
-menutrans &Repeat\ correction<Tab>:spellrepall ظ(&R)<Tab>:spellrepall
-menutrans Set\ language\ to\ "en" 趨Ϊ\ "en"
-menutrans Set\ language\ to\ "en_au" 趨Ϊ\ "en_au"
-menutrans Set\ language\ to\ "en_ca" 趨Ϊ\ "en_ca"
-menutrans Set\ language\ to\ "en_gb" 趨Ϊ\ "en_gb"
-menutrans Set\ language\ to\ "en_nz" 趨Ϊ\ "en_nz"
-menutrans Set\ language\ to\ "en_us" 趨Ϊ\ "en_us"
-menutrans &Find\ More\ Languages Ҹ(&F)
+menutrans &Spelling ƴд(&S)
+" Tools.Spelling menuitems and dialog {{{2
+menutrans &Spell\ Check\ On ƴд(&S)
+menutrans Spell\ Check\ &Off رƴд(&O)
+menutrans To\ &Next\ Error<Tab>]s һ(&N)<Tab>]s
+menutrans To\ &Previous\ Error<Tab>[s һ(&P)<Tab>[s
+menutrans Suggest\ &Corrections<Tab>z= (&C)<Tab>z=
+menutrans &Repeat\ Correction<Tab>:spellrepall ȫͬ(&R)<Tab>:spellrepall
+menutrans Set\ Language\ to\ "en" Ϊ\ "en"
+menutrans Set\ Language\ to\ "en_au" Ϊ\ "en_au"
+menutrans Set\ Language\ to\ "en_ca" Ϊ\ "en_ca"
+menutrans Set\ Language\ to\ "en_gb" Ϊ\ "en_gb"
+menutrans Set\ Language\ to\ "en_nz" Ϊ\ "en_nz"
+menutrans Set\ Language\ to\ "en_us" Ϊ\ "en_us"
+menutrans &Find\ More\ Languages Ҹ(&F)
+
+" func! s:SpellLang()
+if !exists("g:menutrans_set_lang_to")
+ let g:menutrans_set_lang_to = "Ϊ"
+endif
+" }}}
" Tools.Fold Menu
+menutrans &Folding ۵(&F)
+" Tools.Fold menuitems {{{2
" open close folds
-menutrans &Folding ۵(&F)
-menutrans &Enable/Disable\ folds<Tab>zi /۵(&E)<Tab>zi
-menutrans &View\ Cursor\ Line<Tab>zv 鿴(&V)<Tab>zv
-menutrans Vie&w\ Cursor\ Line\ only<Tab>zMzx 鿴(&W)<Tab>zMzx
-menutrans C&lose\ more\ folds<Tab>zm رո۵(&L)<Tab>zm
-menutrans &Close\ all\ folds<Tab>zM ر۵(&C)<Tab>zM
-menutrans O&pen\ more\ folds<Tab>zr 򿪸۵(&P)<Tab>zr
-menutrans &Open\ all\ folds<Tab>zR ۵(&O)<Tab>zR
+menutrans &Enable/Disable\ Folds<Tab>zi /۵(&E)<Tab>zi
+menutrans &View\ Cursor\ Line<Tab>zv չ(&V)<Tab>zv
+menutrans Vie&w\ Cursor\ Line\ Only<Tab>zMzx ֻչ(&W)<Tab>zMzx
+menutrans C&lose\ More\ Folds<Tab>zm ۵һ(&L)<Tab>zm
+menutrans &Close\ All\ Folds<Tab>zM ۵ȫ(&C)<Tab>zM
+menutrans O&pen\ More\ Folds<Tab>zr չһ(&P)<Tab>zr
+menutrans &Open\ All\ Folds<Tab>zR չȫ(&O)<Tab>zR
" fold method
-menutrans Fold\ Met&hod ۵(&H)
-menutrans M&anual ֹ(&A)
-menutrans I&ndent (&N)
-menutrans E&xpression ʽ(&X)
-menutrans S&yntax ﷨(&Y)
-menutrans &Diff Ƚ(Diff)(&D)
-menutrans Ma&rker (&R)
+menutrans Fold\ Met&hod ۵ʽ(&H)
+" Tools.Fold.Fold Method menuitems {{{3
+menutrans M&anual ֶ(&A)
+menutrans I&ndent (&N)
+menutrans E&xpression ʽ(&X)
+menutrans S&yntax ﷨(&Y)
+menutrans &Diff (Diff)(&D)
+menutrans Ma&rker Ǻ(Marker)(&R)
+" }}}
" create and delete folds
-menutrans Create\ &Fold<Tab>zf ۵(&F)<Tab>zf
-menutrans &Delete\ Fold<Tab>zd ɾ۵(&D)<Tab>zd
-menutrans Delete\ &All\ Folds<Tab>zD ɾ۵(&A)<Tab>zD
+menutrans Create\ &Fold<Tab>zf ۵(&F)<Tab>zf
+menutrans &Delete\ Fold<Tab>zd ɾ۵(&D)<Tab>zd
+menutrans Delete\ &All\ Folds<Tab>zD ɾȫ۵(&A)<Tab>zD
" moving around in folds
-menutrans Fold\ column\ &width ۵(&W)
+menutrans Fold\ Col&umn\ Width ۵(&W)
+" }}}
" Tools.Diff Menu
-menutrans &Diff Ƚ(Diff)(&D)
-menutrans &Update (&U)
-menutrans &Get\ Block õ(&G)
-menutrans &Put\ Block ÿ(&P)
+menutrans &Diff (Diff)(&D)
+" Tools.Diff menuitems {{{2
+menutrans &Update ˢ(&U)
+menutrans &Get\ Block öԲı(&G)
+menutrans &Put\ Block ñı(&P)
+" }}}
-menutrans &Make<Tab>:make Make(&M)<Tab>:make
-menutrans &List\ Errors<Tab>:cl г(&L)<Tab>:cl
-menutrans L&ist\ Messages<Tab>:cl! гϢ(&I)<Tab>:cl!
-menutrans &Next\ Error<Tab>:cn һ(&N)<Tab>:cn
-menutrans &Previous\ Error<Tab>:cp һ(&P)<Tab>:cp
-menutrans &Older\ List<Tab>:cold ɵĴб(&O)<Tab>:cold
-menutrans N&ewer\ List<Tab>:cnew µĴб(&E)<Tab>:cnew
-menutrans Error\ &Window 󴰿(&W)
-menutrans &Update<Tab>:cwin (&U)<Tab>:cwin
+menutrans &Make<Tab>:make (Make)(&M)<Tab>:make
+menutrans &List\ Errors<Tab>:cl г(&L)<Tab>:cl
+menutrans L&ist\ Messages<Tab>:cl! гϢ(&I)<Tab>:cl!
+menutrans &Next\ Error<Tab>:cn һ(&N)<Tab>:cn
+menutrans &Previous\ Error<Tab>:cp һ(&P)<Tab>:cp
+menutrans &Older\ List<Tab>:cold ϾɵĴб(&O)<Tab>:cold
+menutrans N&ewer\ List<Tab>:cnew µĴб(&E)<Tab>:cnew
+menutrans Error\ &Window 󴰿(&W)
+" Tools.Error Window menuitems {{{2
+menutrans &Update<Tab>:cwin ˢ(&U)<Tab>:cwin
menutrans &Open<Tab>:copen (&O)<Tab>:copen
-menutrans &Close<Tab>:cclose ر(&C)<Tab>:cclose
-menutrans &Convert\ to\ HEX<Tab>:%!xxd תʮ<Tab>:%!xxd
-menutrans Conve&rt\ back<Tab>:%!xxd\ -r ת<Tab>:%!xxd\ -r
-menutrans Se&T\ Compiler 趨(&T)
+menutrans &Close<Tab>:cclose ر(&C)<Tab>:cclose
+" }}}
+menutrans Show\ Compiler\ Se&ttings\ in\ Menu ڲ˵ʾ(&T)
+menutrans Se&t\ Compiler ñ(&T)
+menutrans &Convert\ to\ HEX<Tab>:%!xxd תʮ(&C)<Tab>:%!xxd
+menutrans Conve&rt\ Back<Tab>:%!xxd\ -r ת(&R)<Tab>:%!xxd\ -r
+" }}}
-" Names for buffer menu.
-menutrans &Buffers (&B)
-menutrans &Refresh\ menu ²˵(&R)
-menutrans &Delete ɾ(&D)
-menutrans &Alternate (&A)
-menutrans &Next һ(&N)
-menutrans &Previous һ(&P)
+" Buffer menu
+menutrans &Buffers (&B)
+" Buffer menuitems and dialog {{{1
+menutrans &Refresh\ Menu ˢ±˵(&R)
+menutrans &Delete ɾ(&D)
+menutrans &Alternate л(&A)
+menutrans &Next һ(&N)
+menutrans &Previous һ(&P)
+
+" func! s:BMMunge(fname, bnum)
+if !exists("g:menutrans_no_file")
+ let g:menutrans_no_file = "[ļ]"
+endif
+" }}}
" Window menu
-menutrans &Window (&W)
-menutrans &New<Tab>^Wn ½(&N)<Tab>^Wn
-menutrans S&plit<Tab>^Ws ָ(&P)<Tab>^Ws
-menutrans Sp&lit\ To\ #<Tab>^W^^ ָ\ #(&L)<Tab>^W^^
-menutrans Split\ &Vertically<Tab>^Wv ֱָ(&V)<Tab>^Wv
-menutrans Split\ File\ E&xplorer ָļ(&X)
-menutrans &Close<Tab>^Wc ر(&C)<Tab>^Wc
-menutrans Close\ &Other(s)<Tab>^Wo ر(&O)<Tab>^Wo
-menutrans Move\ &To ƶ(&T)
-menutrans &Top<Tab>^WK (&T)<Tab>^WK
-menutrans &Bottom<Tab>^WJ ׶(&B)<Tab>^WJ
-menutrans &Left\ side<Tab>^WH (&L)<Tab>^WH
-menutrans &Right\ side<Tab>^WL ұ(&R)<Tab>^WL
-" menutrans Ne&xt<Tab>^Ww һ(&X)<Tab>^Ww
-" menutrans P&revious<Tab>^WW һ(&R)<Tab>^WW
-menutrans Rotate\ &Up<Tab>^WR ֻ(&U)<Tab>^WR
-menutrans Rotate\ &Down<Tab>^Wr ֻ(&D)<Tab>^Wr
-menutrans &Equal\ Size<Tab>^W= ȴ(&E)<Tab>^W=
-menutrans &Max\ Height<Tab>^W_ ߶(&M)<Tab>^W
-menutrans M&in\ Height<Tab>^W1_ С߶(&I)<Tab>^W1_
-menutrans Max\ &Width<Tab>^W\| (&W)<Tab>^W\|
-menutrans Min\ Widt&h<Tab>^W1\| С(&H)<Tab>^W1\|
-"
-" The popup menu
-menutrans &Undo (&U)
-menutrans Cu&t (&T)
-menutrans &Copy (&C)
-menutrans &Paste ճ(&P)
-menutrans &Delete ɾ(&D)
-menutrans Select\ Blockwise ѡ
-menutrans Select\ &Word ѡ񵥴(&W)
-menutrans Select\ &Sentence ѡ(&S)
-menutrans Select\ Pa&ragraph ѡ(&R)
-menutrans Select\ &Line ѡ(&L)
-menutrans Select\ &Block ѡ(&B)
-menutrans Select\ &All ȫѡ(&A)
-"
-" The GUI toolbar
+menutrans &Window (&W)
+" Window menuitems {{{1
+menutrans &New<Tab>^Wn ½(&N)<Tab>^Wn
+menutrans S&plit<Tab>^Ws (&P)<Tab>^Ws
+menutrans Sp&lit\ To\ #<Tab>^W^^ ֲʾ\ #(&L)<Tab>^W^^
+menutrans Split\ &Vertically<Tab>^Wv ֱ(&V)<Tab>^Wv
+menutrans Split\ File\ E&xplorer ֲļ(&X)
+menutrans &Close<Tab>^Wc ر(&C)<Tab>^Wc
+menutrans Close\ &Other(s)<Tab>^Wo ֮ȫر(&O)<Tab>^Wo
+menutrans Move\ &To ƶ(&T)
+menutrans &Top<Tab>^WK (&T)<Tab>^WK
+menutrans &Bottom<Tab>^WJ ׶(&B)<Tab>^WJ
+menutrans &Left\ Side<Tab>^WH (&L)<Tab>^WH
+menutrans &Right\ Side<Tab>^WL ұ(&R)<Tab>^WL
+menutrans Rotate\ &Up<Tab>^WR ֻ(&U)<Tab>^WR
+menutrans Rotate\ &Down<Tab>^Wr ֻ(&D)<Tab>^Wr
+menutrans &Equal\ Size<Tab>^W= ƽֲ(&E)<Tab>^W=
+menutrans &Max\ Height<Tab>^W_ ߶(&M)<Tab>^W
+menutrans M&in\ Height<Tab>^W1_ С߶(&I)<Tab>^W1_
+menutrans Max\ &Width<Tab>^W\| (&W)<Tab>^W\|
+menutrans Min\ Widt&h<Tab>^W1\| С(&H)<Tab>^W1\|
+" }}}
+
+" The popup menu {{{1
+menutrans &Undo (&U)
+menutrans Cu&t (&T)
+menutrans &Copy (&C)
+menutrans &Paste ճ(&P)
+menutrans &Delete ɾ(&D)
+menutrans Select\ Blockwise Ϊѡο
+menutrans Select\ &Word ѡ(&W)
+menutrans Select\ &Sentence ѡ(&S)
+menutrans Select\ Pa&ragraph ѡ(&R)
+menutrans Select\ &Line ѡ(&L)
+menutrans Select\ &Block ѡο(&B)
+menutrans Select\ &All ȫѡ(&A)
+
+" func! <SID>SpellPopup()
+if !exists("g:menutrans_spell_change_ARG_to")
+ let g:menutrans_spell_change_ARG_to = '\ "%s"\ Ϊ'
+endif
+if !exists("g:menutrans_spell_add_ARG_to_word_list")
+ let g:menutrans_spell_add_ARG_to_word_list = '\ "%s"\ ӵʵ'
+endif
+if !exists("g:menutrans_spell_ignore_ARG")
+ let g:menutrans_spell_ignore_ARG = '\ "%s"'
+endif
+" }}}
+
+" The GUI toolbar {{{1
if has("toolbar")
if exists("*Do_toolbar_tmenu")
delfun Do_toolbar_tmenu
endif
fun Do_toolbar_tmenu()
- tmenu ToolBar.Open ļ
- tmenu ToolBar.Save 浱ǰļ
- tmenu ToolBar.SaveAll ȫļ
- tmenu ToolBar.Print ӡ
- tmenu ToolBar.Undo
- tmenu ToolBar.Redo
- tmenu ToolBar.Cut е
- tmenu ToolBar.Copy Ƶ
- tmenu ToolBar.Paste Ӽճ
- tmenu ToolBar.Find ...
- tmenu ToolBar.FindNext һ
- tmenu ToolBar.FindPrev һ
- tmenu ToolBar.Replace Һ滻...
- tmenu ToolBar.LoadSesn ػỰ
- tmenu ToolBar.SaveSesn 浱ǰỰ
- tmenu ToolBar.RunScript Vim ű
- tmenu ToolBar.Make ִ Make (:make)
- tmenu ToolBar.RunCtags ڵǰĿ¼ tags (!ctags -R .)
- tmenu ToolBar.TagJump תλõ tag
- tmenu ToolBar.Help Vim
- tmenu ToolBar.FindHelp Vim
+ let did_toolbar_tmenu = 1
+ tmenu ToolBar.Open ļ
+ tmenu ToolBar.Save 浱ǰļ
+ tmenu ToolBar.SaveAll ȫ
+ tmenu ToolBar.Print ӡ
+ tmenu ToolBar.Undo
+ tmenu ToolBar.Redo ָ
+ tmenu ToolBar.Cut е
+ tmenu ToolBar.Copy Ƶ
+ tmenu ToolBar.Paste Ӽճ
+ if !has("gui_athena")
+ tmenu ToolBar.Replace Һ滻...
+ tmenu ToolBar.FindNext һ
+ tmenu ToolBar.FindPrev һ
+ endif
+ tmenu ToolBar.LoadSesn ػỰ
+ tmenu ToolBar.SaveSesn 浱ǰỰ
+ tmenu ToolBar.RunScript Vim ű
+ tmenu ToolBar.Make ɵǰĿ (:make)
+ tmenu ToolBar.RunCtags ڵǰĿ¼ɱ(Tags) (!ctags -R .)
+ tmenu ToolBar.TagJump תڱ(Tag)
+ tmenu ToolBar.Help Vim
+ tmenu ToolBar.FindHelp Vim в
endfun
endif
+" }}}
" Syntax menu
-menutrans &Syntax ﷨(&S)
-menutrans &Show\ filetypes\ in\ menu ڲ˵ʾļ(&S)
-menutrans &Off ر(&O)
-menutrans &Manual ֹ(&M)
-menutrans A&utomatic Զ(&U)
-menutrans on/off\ for\ &This\ file ļ/(&T)
-menutrans Co&lor\ test ɫʲ(&L)
-menutrans &Highlight\ test (&H)
-menutrans &Convert\ to\ HTML ת\ HTML(&C)
-menutrans Set\ '&syntax'\ only 趨\ 'syntax'(&S)
-menutrans Set\ '&filetype'\ too Ҳ趨\ 'filetype'(&F)
+menutrans &Syntax ﷨(&S)
+" Syntax menuitems {{{1
+menutrans &Show\ File\ Types\ in\ Menu ڲ˵ʾļ(&S)
+menutrans &Off ر(&O)
+menutrans &Manual ֶ(&M)
+menutrans A&utomatic Զ(&U)
+menutrans On/Off\ for\ &This\ File ֻļ/(&T)
+menutrans Co&lor\ Test ɫʲ(&L)
+menutrans &Highlight\ Test (&H)
+menutrans &Convert\ to\ HTML ת\ HTML(&C)
+" From synmenu.vim
+menutrans Set\ '&syntax'\ Only ֻ\ 'syntax'(&S)
+menutrans Set\ '&filetype'\ Too Ҳ\ 'filetype'(&F)
+" }}}
+
+" Netrw menu {{{1
+" Plugin loading may be after menu translation
+" So giveup testing if Netrw Plugin is loaded
+" if exists("g:loaded_netrwPlugin")
+ menutrans Help<tab><F1> <tab><F1>
+ menutrans Bookmarks ǩ
+ menutrans History ʷ¼
+ menutrans Go\ Up\ Directory<tab>- һ<tab>-
+ menutrans Apply\ Special\ Viewer<tab>x Ĭϳ<tab>x
+ menutrans Bookmarks\ and\ History ǩʷ¼
+ " Netrw.Bookmarks and History menuitems {{{2
+ menutrans Bookmark\ Current\ Directory<tab>mb ǩ<tab>mb
+ menutrans Bookmark\ Delete Ƴǩ
+ menutrans Goto\ Prev\ Dir\ (History)<tab>u (ʷ¼)<tab>u
+ menutrans Goto\ Next\ Dir\ (History)<tab>U ǰ(ʷ¼)<tab>U
+ menutrans List<tab>qb б<tab>qb
+ " }}}
+ menutrans Browsing\ Control
+ " Netrw.Browsing Control menuitems {{{2
+ menutrans Horizontal\ Split<tab>o ڲִڴ<tab>o
+ menutrans Vertical\ Split<tab>v ڴֱִڴ<tab>v
+ menutrans New\ Tab<tab>t ڱǩҳ<tab>t
+ menutrans Preview<tab>p Ԥ<tab>p
+ menutrans Edit\ File\ Hiding\ List<tab><ctrl-h> ༭(Hiding\ List)<tab><ctrl-h>
+ menutrans Edit\ Sorting\ Sequence<tab>S ༭(Sorting\ Sequence)<tab>S
+ menutrans Quick\ Hide/Unhide\ Dot\ Files<tab>gh /ʾ\.ͷļ<tab>gh
+ menutrans Refresh\ Listing<tab><ctrl-l> ˢ<tab><ctrl-l>
+ menutrans Settings/Options<tab>:NetrwSettings /ѡ<tab>:NetrwSettings
+ " }}}
+ menutrans Delete\ File/Directory<tab>D ɾļ/Ŀ¼<tab>D
+ menutrans Edit\ File/Dir ༭ļ/Ŀ¼
+ " Netrw.Edit File menuitems {{{2
+ menutrans Create\ New\ File<tab>% ½ļ<tab>%
+ menutrans In\ Current\ Window<tab><cr> ڵǰ<tab><cr>
+ menutrans Preview\ File/Directory<tab>p Ԥļ/Ŀ¼<tab>p
+ menutrans In\ Previous\ Window<tab>P һ<tab>P
+ menutrans In\ New\ Window<tab>o ´<tab>o
+ menutrans In\ New\ Tab<tab>t ±ǩҳ<tab>t
+ menutrans In\ New\ Vertical\ Window<tab>v ´ֱ<tab>v
+ " }}}
+ menutrans Explore
+ " Netrw.Explore menuitems {{{2
+ menutrans Directory\ Name ָĿ¼
+ menutrans Filenames\ Matching\ Pattern\ (curdir\ only)<tab>:Explore\ */ ƥָļģʽ(ǰĿ¼)<tab>:Explore\ */
+ menutrans Filenames\ Matching\ Pattern\ (+subdirs)<tab>:Explore\ **/ ƥָļģʽ(Ŀ¼)<tab>:Explore\ **/
+ menutrans Files\ Containing\ String\ Pattern\ (curdir\ only)<tab>:Explore\ *// ݰַָģʽ(ǰĿ¼)<tab>:Explore\ *//
+ menutrans Files\ Containing\ String\ Pattern\ (+subdirs)<tab>:Explore\ **// ݰַָģʽ(Ŀ¼)<tab>:Explore\ **//
+ menutrans Next\ Match<tab>:Nexplore һƥ<tab>:Nexplore
+ menutrans Prev\ Match<tab>:Pexplore һƥ<tab>:Pexplore
+ " }}}
+ menutrans Make\ Subdirectory<tab>d ½Ŀ¼<tab>d
+ menutrans Marked\ Files ѡ(Marked)ļ
+ " Netrw.Marked Files menuitems {{{2
+ menutrans Mark\ File<tab>mf ѡ(Mark)/ȡ<tab>mf
+ menutrans Mark\ Files\ by\ Regexp<tab>mr ʽ(Regexp)ѡ<tab>mr
+ menutrans Hide-Show-List\ Control<tab>a /ʾ<tab>a
+ menutrans Copy\ To\ Target<tab>mc ƵĿ<tab>mc
+ menutrans Delete<tab>D ɾ<tab>D
+ menutrans Diff<tab>md (Diff)<tab>md
+ menutrans Edit<tab>me ༭<tab>me
+ menutrans Exe\ Cmd<tab>mx Ϊ<tab>mx
+ menutrans Move\ To\ Target<tab>mm ƶĿ<tab>mm
+ menutrans Obtain<tab>O ȡ<tab>O
+ menutrans Print<tab>mp ӡ<tab>mp
+ menutrans Replace<tab>R 滻<tab>R
+ menutrans Set\ Target<tab>mt Ŀ<tab>mt
+ menutrans Tag<tab>mT ɱļ(Tags)<tab>mT
+ menutrans Zip/Unzip/Compress/Uncompress<tab>mz ѹ/ѹ<tab>mz
+ " }}}
+ menutrans Obtain\ File<tab>O ȡļ<tab>O
+ menutrans Style ʾ
+ " Netrw.Style menuitems {{{2
+ menutrans Listing бʽ
+ " Netrw.Style.Listing menuitems {{{3
+ menutrans thin<tab>i <thin)<tab>i
+ menutrans long<tab>i ϸ(long)<tab>i
+ menutrans wide<tab>i (wide)<tab>i
+ menutrans tree<tab>i ״(tree)<tab>i
+ " }}}
+ menutrans Normal-Hide-Show ʾ/
+ " Netrw.Style.Normal-Hide_show menuitems {{{3
+ menutrans Show\ All<tab>a ʾȫ
+ menutrans Normal<tab>a ʾļ
+ menutrans Hidden\ Only<tab>a ֻʾļ
+ " }}}
+ menutrans Reverse\ Sorting\ Order<tab>r /<tab>r
+ menutrans Sorting\ Method ʽ
+ " Netrw.Style.Sorting Method menuitems {{{3
+ menutrans Name<tab>s ļ<tab>s
+ menutrans Time<tab>s ޸ʱ<tab>s
+ menutrans Size<tab>s С<tab>s
+ menutrans Exten<tab>s չ<tab>s
+ " }}}
+ " }}}
+ menutrans Rename\ File/Directory<tab>R ļ/Ŀ¼<tab>R
+ menutrans Set\ Current\ Directory<tab>c \ Vim\ Ŀ¼<tab>c
+ menutrans Targets Ŀ
+" endif
+" }}}
let &cpo = s:keepcpo
unlet s:keepcpo
+
+" vim: set nu ts=4 sw=4 noet fdm=marker fdc=4 :
diff --git a/runtime/lang/menu_zh_cn.gb2312.vim b/runtime/lang/menu_zh_cn.gb2312.vim
index 0df51885f..f0d7ccabf 100644
--- a/runtime/lang/menu_zh_cn.gb2312.vim
+++ b/runtime/lang/menu_zh_cn.gb2312.vim
@@ -1,273 +1,13 @@
" Menu Translations: Simplified Chinese
" Maintainer: Shun Bai <baishunde@gmail.com>
" Previous Maintainer: Yuheng Xie <elephant@linux.net.cn>
-" Last Change: 2014 Oct 15
-
-" vim: ts=8 sw=8 noet
-
-" Quit when menu translations have already been done.
-if exists("did_menu_trans")
- finish
-endif
-let did_menu_trans = 1
-let s:keepcpo= &cpo
-set cpo&vim
+" Last Change: 2019-09-09
" This causes trouble for a broken iconv (symptom: last character is always
" ??). Without this it works fine anyway, because gbk/cp936 is a superset of
" gb2312. (suggested by Edward L. Fox)
" scriptencoding gb2312
-" Help menu
-menutrans &Help (&H)
-menutrans &Overview<Tab><F1> (&O)<Tab><F1>
-menutrans &User\ Manual ûֲ(&U)
-menutrans &How-to\ links How-to\ ָ(&H)
-menutrans &Find\.\.\. (&F)\.\.\.
-menutrans &Credits л(&C)
-menutrans Co&pying Ȩ(&P)
-menutrans &Sponsor/Register /ע(&S)
-menutrans O&rphans ¶(&R)
-menutrans &Version 汾(&V)
-menutrans &About (&A)
-
-" File menu
-menutrans &File ļ(&F)
-menutrans &Open\.\.\.<Tab>:e (&O)\.\.\.<Tab>:e
-menutrans Sp&lit-Open\.\.\.<Tab>:sp ָ(&L)\.\.\.<Tab>:sp
-menutrans Open\ Tab\.\.\.<Tab>:tabnew 򿪱ǩ\.\.\.<Tab>:tabnew
-menutrans &New<Tab>:enew ½(&N)<Tab>:enew
-menutrans &Close<Tab>:close ر(&C)<Tab>:close
-menutrans &Save<Tab>:w (&S)<Tab>:w
-menutrans Save\ &As\.\.\.<Tab>:sav Ϊ(&A)\.\.\.<Tab>:sav
-menutrans Split\ &Diff\ with\.\.\. ָȽ(Diff)(&D)\.\.\.
-menutrans Split\ Patched\ &By\.\.\. ָ򲹶(Patch)(&B)\.\.\.
-menutrans &Print ӡ(&P)
-menutrans Sa&ve-Exit<Tab>:wqa 沢˳(&V)<Tab>:wqa
-menutrans E&xit<Tab>:qa ˳(&X)<Tab>:qa
-
-" Edit menu
-menutrans &Edit ༭(&E)
-menutrans &Undo<Tab>u (&U)<Tab>u
-menutrans &Redo<Tab>^R (&R)<Tab>^R
-menutrans Rep&eat<Tab>\. ظϴβ(&E)<Tab>\.
-menutrans Cu&t<Tab>"+x (&T)<Tab>"+x
-menutrans &Copy<Tab>"+y (&C)<Tab>"+y
-menutrans &Paste<Tab>"+gP ճ(&P)<Tab>"+gP
-menutrans Put\ &Before<Tab>[p ճǰ(&B)<Tab>[p
-menutrans Put\ &After<Tab>]p ճ(&A)<Tab>]p
-menutrans &Delete<Tab>x ɾ(&D)<Tab>x
-menutrans &Select\ All<Tab>ggVG ȫѡ(&S)<Tab>ggVG
-menutrans &Find\.\.\. (&F)\.\.\.
-menutrans Find\ and\ Rep&lace\.\.\. Һ滻(&L)\.\.\.
-menutrans &Find<Tab>/ (&F)<Tab>/
-menutrans Find\ and\ Rep&lace<Tab>:%s Һ滻(&L)<Tab>:%s
-menutrans Settings\ &Window 趨(&W)
-menutrans Startup\ &Settings 趨(&S)
-menutrans &Global\ Settings ȫ趨(&G)
-
-" Edit/Global Settings
-menutrans Toggle\ Pattern\ &Highlight<Tab>:set\ hls! /ģʽ(&H)<Tab>:set\ hls!
-menutrans Toggle\ &Ignore-case<Tab>:set\ ic! /غԴСд(&I)<Tab>:set\ ic!
-menutrans Toggle\ &Showmatch<Tab>:set\ sm! /ʾ(&S)<Tab>:set\ sm!
-menutrans &Context\ lines (&C)
-
-menutrans &Virtual\ Edit ༭(&V)
-menutrans Never Ӳ
-menutrans Block\ Selection ѡ
-menutrans Insert\ mode ģʽ
-menutrans Block\ and\ Insert ѡͲģʽ
-menutrans Always
-
-menutrans Toggle\ Insert\ &Mode<Tab>:set\ im! /زģʽ(&M)<Tab>:set\ im!
-menutrans Toggle\ Vi\ C&ompatible<Tab>:set\ cp! /\ Vi\ <Tab>:set\ cp!
-menutrans Search\ &Path\.\.\. ·(&P)\.\.\.
-menutrans Ta&g\ Files\.\.\. Tag\ ļ(&T)\.\.\.
-
-" GUI options
-menutrans Toggle\ &Toolbar /ع(&T)
-menutrans Toggle\ &Bottom\ Scrollbar /صײ(&B)
-menutrans Toggle\ &Left\ Scrollbar /˹(&L)
-menutrans Toggle\ &Right\ Scrollbar /Ҷ˹(&R)
-
-" Edit/File Settings
-menutrans F&ile\ Settings ļ趨(&I)
-
-" Boolean options
-menutrans Toggle\ Line\ &Numbering<Tab>:set\ nu! /ʾк(&N)<Tab>:set\ nu!
-menutrans Toggle\ relati&ve\ Line\ Numbering<Tab>:set\ rnu! /к(&V)<Tab>:set\ rnu!
-menutrans Toggle\ &List\ Mode<Tab>:set\ list! /\ list\ ģʽ(&L)<Tab>:set\ list!
-menutrans Toggle\ Line\ &Wrap<Tab>:set\ wrap! /(&W)<Tab>:set\ wrap!
-menutrans Toggle\ W&rap\ at\ word<Tab>:set\ lbr! /(&R)<Tab>:set\ lbr!
-menutrans Toggle\ &expand-tab<Tab>:set\ et! /չ\ tab(&E)<Tab>:set\ et!
-menutrans Toggle\ &auto-indent<Tab>:set\ ai! /Զ(&A)<Tab>:set\ ai!
-menutrans Toggle\ &C-indenting<Tab>:set\ cin! /\ C\ (&C)<Tab>:set\ cin!
-
-" other options
-menutrans &Shiftwidth (&S)
-menutrans Soft\ &Tabstop Soft\ Tab\ (&T)
-menutrans Te&xt\ Width\.\.\. ı(&X)\.\.\.
-menutrans &File\ Format\.\.\. ļʽ(&F)\.\.\.
-menutrans C&olor\ Scheme ɫ(&O)
-menutrans Select\ Fo&nt\.\.\. ѡ(&N)\.\.\.
-menutrans &Keymap ӳ(&K)
-
-" Programming menu
-menutrans &Tools (&T)
-menutrans &Jump\ to\ this\ tag<Tab>g^] ת\ tag(&J)<Tab>g^]
-menutrans Jump\ &back<Tab>^T ת(&B)<Tab>^T
-menutrans Build\ &Tags\ File \ Tags\ ļ(&T)
-
-" Tools.Spelling Menu
-menutrans &Spelling ƴд(&S)
-menutrans &Spell\ Check\ On ƴд(&S)
-menutrans Spell\ Check\ &Off رƴд(&O)
-menutrans To\ &Next\ error<Tab>]s һ(&N)<Tab>]s
-menutrans To\ &Previous\ error<Tab>[s һ(&P)<Tab>[s
-menutrans Suggest\ &Corrections<Tab>z= (&C)<Tab>z=
-menutrans &Repeat\ correction<Tab>:spellrepall ظ(&R)<Tab>:spellrepall
-menutrans Set\ language\ to\ "en" 趨Ϊ\ "en"
-menutrans Set\ language\ to\ "en_au" 趨Ϊ\ "en_au"
-menutrans Set\ language\ to\ "en_ca" 趨Ϊ\ "en_ca"
-menutrans Set\ language\ to\ "en_gb" 趨Ϊ\ "en_gb"
-menutrans Set\ language\ to\ "en_nz" 趨Ϊ\ "en_nz"
-menutrans Set\ language\ to\ "en_us" 趨Ϊ\ "en_us"
-menutrans &Find\ More\ Languages Ҹ(&F)
-
-" Tools.Fold Menu
-" open close folds
-menutrans &Folding ۵(&F)
-menutrans &Enable/Disable\ folds<Tab>zi /۵(&E)<Tab>zi
-menutrans &View\ Cursor\ Line<Tab>zv 鿴(&V)<Tab>zv
-menutrans Vie&w\ Cursor\ Line\ only<Tab>zMzx 鿴(&W)<Tab>zMzx
-menutrans C&lose\ more\ folds<Tab>zm رո۵(&L)<Tab>zm
-menutrans &Close\ all\ folds<Tab>zM ر۵(&C)<Tab>zM
-menutrans O&pen\ more\ folds<Tab>zr 򿪸۵(&P)<Tab>zr
-menutrans &Open\ all\ folds<Tab>zR ۵(&O)<Tab>zR
-" fold method
-menutrans Fold\ Met&hod ۵(&H)
-menutrans M&anual ֹ(&A)
-menutrans I&ndent (&N)
-menutrans E&xpression ʽ(&X)
-menutrans S&yntax ﷨(&Y)
-menutrans &Diff Ƚ(Diff)(&D)
-menutrans Ma&rker (&R)
-" create and delete folds
-menutrans Create\ &Fold<Tab>zf ۵(&F)<Tab>zf
-menutrans &Delete\ Fold<Tab>zd ɾ۵(&D)<Tab>zd
-menutrans Delete\ &All\ Folds<Tab>zD ɾ۵(&A)<Tab>zD
-" moving around in folds
-menutrans Fold\ column\ &width ۵(&W)
-
-" Tools.Diff Menu
-menutrans &Diff Ƚ(Diff)(&D)
-menutrans &Update (&U)
-menutrans &Get\ Block õ(&G)
-menutrans &Put\ Block ÿ(&P)
-
-menutrans &Make<Tab>:make Make(&M)<Tab>:make
-menutrans &List\ Errors<Tab>:cl г(&L)<Tab>:cl
-menutrans L&ist\ Messages<Tab>:cl! гϢ(&I)<Tab>:cl!
-menutrans &Next\ Error<Tab>:cn һ(&N)<Tab>:cn
-menutrans &Previous\ Error<Tab>:cp һ(&P)<Tab>:cp
-menutrans &Older\ List<Tab>:cold ɵĴб(&O)<Tab>:cold
-menutrans N&ewer\ List<Tab>:cnew µĴб(&E)<Tab>:cnew
-menutrans Error\ &Window 󴰿(&W)
-menutrans &Update<Tab>:cwin (&U)<Tab>:cwin
-menutrans &Open<Tab>:copen (&O)<Tab>:copen
-menutrans &Close<Tab>:cclose ر(&C)<Tab>:cclose
-menutrans &Convert\ to\ HEX<Tab>:%!xxd תʮ<Tab>:%!xxd
-menutrans Conve&rt\ back<Tab>:%!xxd\ -r ת<Tab>:%!xxd\ -r
-menutrans Se&T\ Compiler 趨(&T)
-
-" Names for buffer menu.
-menutrans &Buffers (&B)
-menutrans &Refresh\ menu ²˵(&R)
-menutrans &Delete ɾ(&D)
-menutrans &Alternate (&A)
-menutrans &Next һ(&N)
-menutrans &Previous һ(&P)
-
-" Window menu
-menutrans &Window (&W)
-menutrans &New<Tab>^Wn ½(&N)<Tab>^Wn
-menutrans S&plit<Tab>^Ws ָ(&P)<Tab>^Ws
-menutrans Sp&lit\ To\ #<Tab>^W^^ ָ\ #(&L)<Tab>^W^^
-menutrans Split\ &Vertically<Tab>^Wv ֱָ(&V)<Tab>^Wv
-menutrans Split\ File\ E&xplorer ָļ(&X)
-menutrans &Close<Tab>^Wc ر(&C)<Tab>^Wc
-menutrans Close\ &Other(s)<Tab>^Wo ر(&O)<Tab>^Wo
-menutrans Move\ &To ƶ(&T)
-menutrans &Top<Tab>^WK (&T)<Tab>^WK
-menutrans &Bottom<Tab>^WJ ׶(&B)<Tab>^WJ
-menutrans &Left\ side<Tab>^WH (&L)<Tab>^WH
-menutrans &Right\ side<Tab>^WL ұ(&R)<Tab>^WL
-" menutrans Ne&xt<Tab>^Ww һ(&X)<Tab>^Ww
-" menutrans P&revious<Tab>^WW һ(&R)<Tab>^WW
-menutrans Rotate\ &Up<Tab>^WR ֻ(&U)<Tab>^WR
-menutrans Rotate\ &Down<Tab>^Wr ֻ(&D)<Tab>^Wr
-menutrans &Equal\ Size<Tab>^W= ȴ(&E)<Tab>^W=
-menutrans &Max\ Height<Tab>^W_ ߶(&M)<Tab>^W
-menutrans M&in\ Height<Tab>^W1_ С߶(&I)<Tab>^W1_
-menutrans Max\ &Width<Tab>^W\| (&W)<Tab>^W\|
-menutrans Min\ Widt&h<Tab>^W1\| С(&H)<Tab>^W1\|
-"
-" The popup menu
-menutrans &Undo (&U)
-menutrans Cu&t (&T)
-menutrans &Copy (&C)
-menutrans &Paste ճ(&P)
-menutrans &Delete ɾ(&D)
-menutrans Select\ Blockwise ѡ
-menutrans Select\ &Word ѡ񵥴(&W)
-menutrans Select\ &Sentence ѡ(&S)
-menutrans Select\ Pa&ragraph ѡ(&R)
-menutrans Select\ &Line ѡ(&L)
-menutrans Select\ &Block ѡ(&B)
-menutrans Select\ &All ȫѡ(&A)
-"
-" The GUI toolbar
-if has("toolbar")
- if exists("*Do_toolbar_tmenu")
- delfun Do_toolbar_tmenu
- endif
- fun Do_toolbar_tmenu()
- tmenu ToolBar.Open ļ
- tmenu ToolBar.Save 浱ǰļ
- tmenu ToolBar.SaveAll ȫļ
- tmenu ToolBar.Print ӡ
- tmenu ToolBar.Undo
- tmenu ToolBar.Redo
- tmenu ToolBar.Cut е
- tmenu ToolBar.Copy Ƶ
- tmenu ToolBar.Paste Ӽճ
- tmenu ToolBar.Find ...
- tmenu ToolBar.FindNext һ
- tmenu ToolBar.FindPrev һ
- tmenu ToolBar.Replace Һ滻...
- tmenu ToolBar.LoadSesn ػỰ
- tmenu ToolBar.SaveSesn 浱ǰỰ
- tmenu ToolBar.RunScript Vim ű
- tmenu ToolBar.Make ִ Make (:make)
- tmenu ToolBar.RunCtags ڵǰĿ¼ tags (!ctags -R .)
- tmenu ToolBar.TagJump תλõ tag
- tmenu ToolBar.Help Vim
- tmenu ToolBar.FindHelp Vim
- endfun
-endif
-
-" Syntax menu
-menutrans &Syntax ﷨(&S)
-menutrans &Show\ filetypes\ in\ menu ڲ˵ʾļ(&S)
-menutrans &Off ر(&O)
-menutrans &Manual ֹ(&M)
-menutrans A&utomatic Զ(&U)
-menutrans on/off\ for\ &This\ file ļ/(&T)
-menutrans Co&lor\ test ɫʲ(&L)
-menutrans &Highlight\ test (&H)
-menutrans &Convert\ to\ HTML ת\ HTML(&C)
-menutrans Set\ '&syntax'\ only 趨\ 'syntax'(&S)
-menutrans Set\ '&filetype'\ too Ҳ趨\ 'filetype'(&F)
-
-let &cpo = s:keepcpo
-unlet s:keepcpo
+" As mentioned above, gbk/cp936 is a superset of (and backward compatible with)
+" gb2312, then source the translation encoded in cp936 should be ok. -- Shun
+source <sfile>:p:h/menu_zh_cn.cp936.vim
diff --git a/runtime/lang/menu_zh_cn.utf-8.vim b/runtime/lang/menu_zh_cn.utf-8.vim
index cb1288f63..c8e2eb382 100644
--- a/runtime/lang/menu_zh_cn.utf-8.vim
+++ b/runtime/lang/menu_zh_cn.utf-8.vim
@@ -1,270 +1,452 @@
" Menu Translations: Simplified Chinese
" Maintainer: Shun Bai <baishunde@gmail.com>
" Previous Maintainer: Yuheng Xie <elephant@linux.net.cn>
-" Last Change: 2014 Oct 15
-
-" vim: ts=8 sw=8 noet
+" Last Change: 2019 Sep 11
" Quit when menu translations have already been done.
if exists("did_menu_trans")
finish
endif
let did_menu_trans = 1
-let s:keepcpo= &cpo
+let s:keepcpo = &cpo
set cpo&vim
scriptencoding utf-8
" Help menu
-menutrans &Help 帮助(&H)
-menutrans &Overview<Tab><F1> 纵览(&O)<Tab><F1>
-menutrans &User\ Manual 用户手册(&U)
-menutrans &How-to\ links How-to\ 指引(&H)
-menutrans &Find\.\.\. 查找(&F)\.\.\.
-menutrans &Credits 致谢(&C)
-menutrans Co&pying 版权(&P)
-menutrans &Sponsor/Register 赞助/注册(&S)
-menutrans O&rphans 孤儿(&R)
-menutrans &Version 版本(&V)
-menutrans &About 关于(&A)
+menutrans &Help 帮助(&H)
+" Help menuitems and dialog {{{1
+menutrans &Overview<Tab><F1> 概述(&O)<Tab><F1>
+menutrans &User\ Manual 用户手册(&U)
+menutrans &How-to\ Links 如何使用(&H)
+menutrans &Find\.\.\. 查找(&F)\.\.\.
+menutrans &Credits 致谢(&C)
+menutrans Co&pying 版权(&P)
+menutrans &Sponsor/Register 赞助/注册(&S)
+menutrans O&rphans 拯救孤儿(&R)
+menutrans &Version 版本(&V)
+menutrans &About 关于(&A)
+
+" fun! s:Helpfind()
+if !exists("g:menutrans_help_dialog")
+ let g:menutrans_help_dialog = "输入命令或单词以获得帮助:\n\n前缀 i_ 表示输入模式下的命令(如: i_CTRL-X)\n前缀 c_ 表示命令行下的编辑命令(如: c_<Del>)\n前缀 ' 表示选项名(如: 'shiftwidth')"
+endif
+" }}}
" File menu
-menutrans &File 文件(&F)
-menutrans &Open\.\.\.<Tab>:e 打开(&O)\.\.\.<Tab>:e
-menutrans Sp&lit-Open\.\.\.<Tab>:sp 分割并打开(&L)\.\.\.<Tab>:sp
-menutrans Open\ Tab\.\.\.<Tab>:tabnew 打开标签\.\.\.<Tab>:tabnew
-menutrans &New<Tab>:enew 新建(&N)<Tab>:enew
-menutrans &Close<Tab>:close 关闭(&C)<Tab>:close
-menutrans &Save<Tab>:w 保存(&S)<Tab>:w
-menutrans Save\ &As\.\.\.<Tab>:sav 另存为(&A)\.\.\.<Tab>:sav
-menutrans Split\ &Diff\ with\.\.\. 分割比较(Diff)(&D)\.\.\.
-menutrans Split\ Patched\ &By\.\.\. 分割打补丁(Patch)(&B)\.\.\.
-menutrans &Print 打印(&P)
-menutrans Sa&ve-Exit<Tab>:wqa 保存并退出(&V)<Tab>:wqa
-menutrans E&xit<Tab>:qa 退出(&X)<Tab>:qa
+menutrans &File 文件(&F)
+" File menuitems {{{1
+menutrans &Open\.\.\.<Tab>:e 打开(&O)\.\.\.<Tab>:e
+menutrans Sp&lit-Open\.\.\.<Tab>:sp 在拆分窗口打开(&L)\.\.\.<Tab>:sp
+menutrans Open\ Tab\.\.\.<Tab>:tabnew 在标签页打开\.\.\.<Tab>:tabnew
+menutrans &New<Tab>:enew 新建(&N)<Tab>:enew
+menutrans &Close<Tab>:close 关闭(&C)<Tab>:close
+menutrans &Save<Tab>:w 保存(&S)<Tab>:w
+menutrans Save\ &As\.\.\.<Tab>:sav 另存为(&A)\.\.\.<Tab>:sav
+menutrans Split\ &Diff\ With\.\.\. 拆分窗口以对比差异(Diff)(&D)\.\.\.
+menutrans Split\ Patched\ &By\.\.\. 拆分窗口以进行修补(Patch)(&B)\.\.\.
+menutrans &Print 打印(&P)
+menutrans Sa&ve-Exit<Tab>:wqa 保存并退出(&V)<Tab>:wqa
+menutrans E&xit<Tab>:qa 退出(&X)<Tab>:qa
+" }}}
" Edit menu
-menutrans &Edit 编辑(&E)
-menutrans &Undo<Tab>u 撤销(&U)<Tab>u
-menutrans &Redo<Tab>^R 重做(&R)<Tab>^R
-menutrans Rep&eat<Tab>\. 重复上次操作(&E)<Tab>\.
-menutrans Cu&t<Tab>"+x 剪切(&T)<Tab>"+x
-menutrans &Copy<Tab>"+y 复制(&C)<Tab>"+y
-menutrans &Paste<Tab>"+gP 粘贴(&P)<Tab>"+gP
-menutrans Put\ &Before<Tab>[p 粘贴到光标前(&B)<Tab>[p
-menutrans Put\ &After<Tab>]p 粘贴到光标后(&A)<Tab>]p
-menutrans &Delete<Tab>x 删除(&D)<Tab>x
-menutrans &Select\ All<Tab>ggVG 全选(&S)<Tab>ggVG
-menutrans &Find\.\.\. 查找(&F)\.\.\.
-menutrans Find\ and\ Rep&lace\.\.\. 查找和替换(&L)\.\.\.
-menutrans &Find<Tab>/ 查找(&F)<Tab>/
-menutrans Find\ and\ Rep&lace<Tab>:%s 查找和替换(&L)<Tab>:%s
-menutrans Settings\ &Window 设定窗口(&W)
-menutrans Startup\ &Settings 启动设定(&S)
-menutrans &Global\ Settings 全局设定(&G)
+menutrans &Edit 编辑(&E)
+" Edit menuitems {{{1
+menutrans &Undo<Tab>u 撤销(&U)<Tab>u
+menutrans &Redo<Tab>^R 恢复(&R)<Tab>^R
+menutrans Rep&eat<Tab>\. 重复(&E)<Tab>\.
+menutrans Cu&t<Tab>"+x 剪切(&T)<Tab>"+x
+menutrans &Copy<Tab>"+y 复制(&C)<Tab>"+y
+menutrans &Paste<Tab>"+gP 粘贴(&P)<Tab>"+gP
+menutrans Put\ &Before<Tab>[p 粘贴到光标前(&B)<Tab>[p
+menutrans Put\ &After<Tab>]p 粘贴到光标后(&A)<Tab>]p
+menutrans &Delete<Tab>x 删除(&D)<Tab>x
+menutrans &Select\ All<Tab>ggVG 全选(&S)<Tab>ggVG
+menutrans &Find\.\.\. 查找(&F)\.\.\.
+menutrans Find\ and\ Rep&lace\.\.\. 查找和替换(&L)\.\.\.
+menutrans &Find<Tab>/ 查找(&F)<Tab>/
+menutrans Find\ and\ Rep&lace<Tab>:%s 查找和替换(&L)<Tab>:%s
+menutrans Settings\ &Window 设置窗口(&W)
+menutrans Startup\ &Settings 启动设置(&S)
" Edit/Global Settings
-menutrans Toggle\ Pattern\ &Highlight<Tab>:set\ hls! 开/关模式高亮(&H)<Tab>:set\ hls!
-menutrans Toggle\ &Ignore-case<Tab>:set\ ic! 开/关忽略大小写(&I)<Tab>:set\ ic!
-menutrans Toggle\ &Showmatch<Tab>:set\ sm! 开/关显示配对(&S)<Tab>:set\ sm!
-menutrans &Context\ lines 上下文行数(&C)
-
-menutrans &Virtual\ Edit 虚拟编辑(&V)
+menutrans &Global\ Settings 全局设置(&G)
+" Edit.Global Settings menuitems and dialogs {{{2
+menutrans Toggle\ Pattern\ &Highlight<Tab>:set\ hls! 开/关高亮查找内容(&H)<Tab>:set\ hls!
+menutrans Toggle\ &Ignoring\ Case<Tab>:set\ ic! 开/关忽略大小写(&I)<Tab>:set\ ic!
+menutrans Toggle\ &Showing\ Matched\ Pairs<Tab>:set\ sm! 开/关显示括号匹配(&S)<Tab>:set\ sm!
+menutrans &Context\ Lines 上下文行数(&C)
+menutrans &Virtual\ Edit 虚拟编辑(&V)
+" Edit.Global Settings.Virtual Edit menuitems {{{3
menutrans Never 从不
-menutrans Block\ Selection 块选择
-menutrans Insert\ mode 插入模式
-menutrans Block\ and\ Insert 块选择和插入模式
-menutrans Always 总是
-
-menutrans Toggle\ Insert\ &Mode<Tab>:set\ im! 开/关插入模式(&M)<Tab>:set\ im!
-menutrans Toggle\ Vi\ C&ompatible<Tab>:set\ cp! 开/关\ Vi\ 兼容<Tab>:set\ cp!
-menutrans Search\ &Path\.\.\. 查找路径(&P)\.\.\.
-menutrans Ta&g\ Files\.\.\. Tag\ 文件(&T)\.\.\.
+menutrans Block\ Selection 只在选定矩形块时
+menutrans Insert\ Mode 只在插入模式时
+menutrans Block\ and\ Insert 在选定矩形块和插入模式时
+menutrans Always 始终
+" }}}
+menutrans Toggle\ Insert\ &Mode<Tab>:set\ im! 开/关插入模式(&M)<Tab>:set\ im!
+menutrans Toggle\ Vi\ C&ompatibility<Tab>:set\ cp! 开/关\ Vi\ 兼容性(&O)<Tab>:set\ cp!
+menutrans Search\ &Path\.\.\. 搜索路径(&P)\.\.\.
+menutrans Ta&g\ Files\.\.\. 标记文件(Tags)(&G)\.\.\.
" GUI options
-menutrans Toggle\ &Toolbar 开/关工具栏(&T)
-menutrans Toggle\ &Bottom\ Scrollbar 开/关底部滚动条(&B)
-menutrans Toggle\ &Left\ Scrollbar 开/关左端滚动条(&L)
-menutrans Toggle\ &Right\ Scrollbar 开/关右端滚动条(&R)
+menutrans Toggle\ &Toolbar 开/关工具栏(&T)
+menutrans Toggle\ &Bottom\ Scrollbar 开/关底部滚动条(&B)
+menutrans Toggle\ &Left\ Scrollbar 开/关左侧滚动条(&L)
+menutrans Toggle\ &Right\ Scrollbar 开/关右侧滚动条(&R)
-" Edit/File Settings
-menutrans F&ile\ Settings 文件设定(&I)
+" fun! s:SearchP()
+if !exists("g:menutrans_path_dialog")
+ let g:menutrans_path_dialog = "输入搜索路径。\n用逗号分隔目录名。"
+endif
+
+" fun! s:TagFiles()
+if !exists("g:menutrans_tags_dialog")
+ let g:menutrans_tags_dialog = "输入标记文件(Tags)名称。\n用逗号分隔文件名。"
+endif
+" }}}
+" Edit/File Settings
+menutrans F&ile\ Settings 文件设置(&I)
+" Edit.File Settings menuitems and dialogs {{{2
" Boolean options
-menutrans Toggle\ Line\ &Numbering<Tab>:set\ nu! 开/关显示行号(&N)<Tab>:set\ nu!
-menutrans Toggle\ relati&ve\ Line\ Numbering<Tab>:set\ rnu! 开/关相对行号(&V)<Tab>:set\ rnu!
-menutrans Toggle\ &List\ Mode<Tab>:set\ list! 开/关\ list\ 模式(&L)<Tab>:set\ list!
-menutrans Toggle\ Line\ &Wrap<Tab>:set\ wrap! 开/关折行(&W)<Tab>:set\ wrap!
-menutrans Toggle\ W&rap\ at\ word<Tab>:set\ lbr! 开/关整词折行(&R)<Tab>:set\ lbr!
-menutrans Toggle\ &expand-tab<Tab>:set\ et! 开/关扩展\ tab(&E)<Tab>:set\ et!
-menutrans Toggle\ &auto-indent<Tab>:set\ ai! 开/关自动缩进(&A)<Tab>:set\ ai!
-menutrans Toggle\ &C-indenting<Tab>:set\ cin! 开/关\ C\ 缩进(&C)<Tab>:set\ cin!
+menutrans Toggle\ Line\ &Numbering<Tab>:set\ nu! 开/关行号(&N)<Tab>:set\ nu!
+menutrans Toggle\ Relati&ve\ Line\ Numbering<Tab>:set\ rnu! 开/关相对行号(&V)<Tab>:set\ rnu!
+menutrans Toggle\ &List\ Mode<Tab>:set\ list! 开/关列表模式(&L)<Tab>:set\ list!
+menutrans Toggle\ Line\ &Wrapping<Tab>:set\ wrap! 开/关换行(&W)<Tab>:set\ wrap!
+menutrans Toggle\ W&rapping\ at\ Word<Tab>:set\ lbr! 开/关词尾换行(&R)<Tab>:set\ lbr!
+menutrans Toggle\ Tab\ &Expanding<Tab>:set\ et! 开/关制表符扩展(&E)<Tab>:set\ et!
+menutrans Toggle\ &Auto\ Indenting<Tab>:set\ ai! 开/关自动缩进(&A)<Tab>:set\ ai!
+menutrans Toggle\ &C-Style\ Indenting<Tab>:set\ cin! 开/关\ C\ 语言式缩进(&C)<Tab>:set\ cin!
" other options
-menutrans &Shiftwidth 缩进宽度(&S)
-menutrans Soft\ &Tabstop Soft\ Tab\ 宽度(&T)
-menutrans Te&xt\ Width\.\.\. 文本宽度(&X)\.\.\.
-menutrans &File\ Format\.\.\. 文件格式(&F)\.\.\.
-menutrans C&olor\ Scheme 配色方案(&O)
-menutrans Select\ Fo&nt\.\.\. 选择字体(&N)\.\.\.
-menutrans &Keymap 键盘映射(&K)
+menutrans &Shiftwidth 缩进宽度(&S)
+menutrans Soft\ &Tabstop 软制表位宽度(Soft Tabstop)(&T)
+menutrans Te&xt\ Width\.\.\. 文本宽度(&X)\.\.\.
+menutrans &File\ Format\.\.\. 文件格式(&F)\.\.\.
+
+" fun! s:TextWidth()
+if !exists("g:menutrans_textwidth_dialog")
+ let g:menutrans_textwidth_dialog = "输入文本宽度(每行最大字符数,0 表示禁用):"
+endif
+
+" fun! s:FileFormat()
+if !exists("g:menutrans_fileformat_dialog")
+ let g:menutrans_fileformat_dialog = "选择文件的保存格式:"
+endif
+if !exists("g:menutrans_fileformat_choices")
+ let g:menutrans_fileformat_choices = "&Unix\n&Dos\n&Mac\n取消(&C)"
+endif
+" }}}
+menutrans Show\ C&olor\ Schemes\ in\ Menu 在菜单中显示配色方案(&O)
+menutrans C&olor\ Scheme 配色方案(&O)
+menutrans Show\ &Keymaps\ in\ Menu 在菜单中显示键盘映射(&K)
+menutrans &Keymap 键盘映射(&K)
+menutrans Select\ Fo&nt\.\.\. 选择字体(&N)\.\.\.
+" }}}
" Programming menu
-menutrans &Tools 工具(&T)
-menutrans &Jump\ to\ this\ tag<Tab>g^] 跳转到这个\ tag(&J)<Tab>g^]
-menutrans Jump\ &back<Tab>^T 跳转返回(&B)<Tab>^T
-menutrans Build\ &Tags\ File 建立\ Tags\ 文件(&T)
+menutrans &Tools 工具(&T)
+" Tools menuitems {{{1
+menutrans &Jump\ to\ This\ Tag<Tab>g^] 跳转到这个标记(Tag)(&J)<Tab>g^]
+menutrans Jump\ &Back<Tab>^T 跳转回(&B)<Tab>^T
+menutrans Build\ &Tags\ File 生成标记文件(Tags)(&T)
" Tools.Spelling Menu
-menutrans &Spelling 拼写检查(&S)
-menutrans &Spell\ Check\ On 打开拼写检查(&S)
-menutrans Spell\ Check\ &Off 关闭拼写检查(&O)
-menutrans To\ &Next\ error<Tab>]s 上一个错误(&N)<Tab>]s
-menutrans To\ &Previous\ error<Tab>[s 下一个错误(&P)<Tab>[s
-menutrans Suggest\ &Corrections<Tab>z= 修正建议(&C)<Tab>z=
-menutrans &Repeat\ correction<Tab>:spellrepall 重复修正(&R)<Tab>:spellrepall
-menutrans Set\ language\ to\ "en" 设定语言为\ "en"
-menutrans Set\ language\ to\ "en_au" 设定语言为\ "en_au"
-menutrans Set\ language\ to\ "en_ca" 设定语言为\ "en_ca"
-menutrans Set\ language\ to\ "en_gb" 设定语言为\ "en_gb"
-menutrans Set\ language\ to\ "en_nz" 设定语言为\ "en_nz"
-menutrans Set\ language\ to\ "en_us" 设定语言为\ "en_us"
-menutrans &Find\ More\ Languages 查找更多语言(&F)
+menutrans &Spelling 拼写检查(&S)
+" Tools.Spelling menuitems and dialog {{{2
+menutrans &Spell\ Check\ On 打开拼写检查(&S)
+menutrans Spell\ Check\ &Off 关闭拼写检查(&O)
+menutrans To\ &Next\ Error<Tab>]s 上一个错误(&N)<Tab>]s
+menutrans To\ &Previous\ Error<Tab>[s 下一个错误(&P)<Tab>[s
+menutrans Suggest\ &Corrections<Tab>z= 更正建议(&C)<Tab>z=
+menutrans &Repeat\ Correction<Tab>:spellrepall 更正全部同类错误(&R)<Tab>:spellrepall
+menutrans Set\ Language\ to\ "en" 设置语言为\ "en"
+menutrans Set\ Language\ to\ "en_au" 设置语言为\ "en_au"
+menutrans Set\ Language\ to\ "en_ca" 设置语言为\ "en_ca"
+menutrans Set\ Language\ to\ "en_gb" 设置语言为\ "en_gb"
+menutrans Set\ Language\ to\ "en_nz" 设置语言为\ "en_nz"
+menutrans Set\ Language\ to\ "en_us" 设置语言为\ "en_us"
+menutrans &Find\ More\ Languages 查找更多语言(&F)
+
+" func! s:SpellLang()
+if !exists("g:menutrans_set_lang_to")
+ let g:menutrans_set_lang_to = "设置语言为"
+endif
+" }}}
" Tools.Fold Menu
+menutrans &Folding 折叠(&F)
+" Tools.Fold menuitems {{{2
" open close folds
-menutrans &Folding 折叠(&F)
-menutrans &Enable/Disable\ folds<Tab>zi 启用/禁用折叠(&E)<Tab>zi
-menutrans &View\ Cursor\ Line<Tab>zv 查看此行(&V)<Tab>zv
-menutrans Vie&w\ Cursor\ Line\ only<Tab>zMzx 仅查看此行(&W)<Tab>zMzx
-menutrans C&lose\ more\ folds<Tab>zm 关闭更多折叠(&L)<Tab>zm
-menutrans &Close\ all\ folds<Tab>zM 关闭所有折叠(&C)<Tab>zM
-menutrans O&pen\ more\ folds<Tab>zr 打开更多折叠(&P)<Tab>zr
-menutrans &Open\ all\ folds<Tab>zR 打开所有折叠(&O)<Tab>zR
+menutrans &Enable/Disable\ Folds<Tab>zi 启用/禁用折叠(&E)<Tab>zi
+menutrans &View\ Cursor\ Line<Tab>zv 展开光标所在行(&V)<Tab>zv
+menutrans Vie&w\ Cursor\ Line\ Only<Tab>zMzx 只展开光标所在行(&W)<Tab>zMzx
+menutrans C&lose\ More\ Folds<Tab>zm 折叠一级(&L)<Tab>zm
+menutrans &Close\ All\ Folds<Tab>zM 折叠全部(&C)<Tab>zM
+menutrans O&pen\ More\ Folds<Tab>zr 展开一级(&P)<Tab>zr
+menutrans &Open\ All\ Folds<Tab>zR 展开全部(&O)<Tab>zR
" fold method
-menutrans Fold\ Met&hod 折叠方法(&H)
-menutrans M&anual 手工(&A)
-menutrans I&ndent 缩进(&N)
-menutrans E&xpression 表达式(&X)
-menutrans S&yntax 语法(&Y)
-menutrans &Diff 比较(Diff)(&D)
-menutrans Ma&rker 标记(&R)
+menutrans Fold\ Met&hod 折叠方式(&H)
+" Tools.Fold.Fold Method menuitems {{{3
+menutrans M&anual 手动(&A)
+menutrans I&ndent 缩进(&N)
+menutrans E&xpression 表达式(&X)
+menutrans S&yntax 语法(&Y)
+menutrans &Diff 差异(Diff)(&D)
+menutrans Ma&rker 记号(Marker)(&R)
+" }}}
" create and delete folds
-menutrans Create\ &Fold<Tab>zf 创建折叠(&F)<Tab>zf
-menutrans &Delete\ Fold<Tab>zd 删除折叠(&D)<Tab>zd
-menutrans Delete\ &All\ Folds<Tab>zD 删除所有折叠(&A)<Tab>zD
+menutrans Create\ &Fold<Tab>zf 创建折叠(&F)<Tab>zf
+menutrans &Delete\ Fold<Tab>zd 删除折叠(&D)<Tab>zd
+menutrans Delete\ &All\ Folds<Tab>zD 删除全部折叠(&A)<Tab>zD
" moving around in folds
-menutrans Fold\ column\ &width 折叠栏宽度(&W)
+menutrans Fold\ Col&umn\ Width 折叠操作栏宽度(&W)
+" }}}
" Tools.Diff Menu
-menutrans &Diff 比较(Diff)(&D)
-menutrans &Update 更新(&U)
-menutrans &Get\ Block 得到块(&G)
-menutrans &Put\ Block 放置块(&P)
+menutrans &Diff 差异(Diff)(&D)
+" Tools.Diff menuitems {{{2
+menutrans &Update 刷新(&U)
+menutrans &Get\ Block 采用对侧文本块(&G)
+menutrans &Put\ Block 采用本侧文本块(&P)
+" }}}
-menutrans &Make<Tab>:make Make(&M)<Tab>:make
-menutrans &List\ Errors<Tab>:cl 列出错误(&L)<Tab>:cl
-menutrans L&ist\ Messages<Tab>:cl! 列出消息(&I)<Tab>:cl!
-menutrans &Next\ Error<Tab>:cn 下一个错误(&N)<Tab>:cn
-menutrans &Previous\ Error<Tab>:cp 上一个错误(&P)<Tab>:cp
-menutrans &Older\ List<Tab>:cold 更旧的错误列表(&O)<Tab>:cold
-menutrans N&ewer\ List<Tab>:cnew 更新的错误列表(&E)<Tab>:cnew
-menutrans Error\ &Window 错误窗口(&W)
-menutrans &Update<Tab>:cwin 更新(&U)<Tab>:cwin
+menutrans &Make<Tab>:make 生成(Make)(&M)<Tab>:make
+menutrans &List\ Errors<Tab>:cl 列出错误(&L)<Tab>:cl
+menutrans L&ist\ Messages<Tab>:cl! 列出消息(&I)<Tab>:cl!
+menutrans &Next\ Error<Tab>:cn 下一个错误(&N)<Tab>:cn
+menutrans &Previous\ Error<Tab>:cp 上一个错误(&P)<Tab>:cp
+menutrans &Older\ List<Tab>:cold 较旧的错误列表(&O)<Tab>:cold
+menutrans N&ewer\ List<Tab>:cnew 较新的错误列表(&E)<Tab>:cnew
+menutrans Error\ &Window 错误窗口(&W)
+" Tools.Error Window menuitems {{{2
+menutrans &Update<Tab>:cwin 刷新(&U)<Tab>:cwin
menutrans &Open<Tab>:copen 打开(&O)<Tab>:copen
-menutrans &Close<Tab>:cclose 关闭(&C)<Tab>:cclose
-menutrans &Convert\ to\ HEX<Tab>:%!xxd 转换成十六进制<Tab>:%!xxd
-menutrans Conve&rt\ back<Tab>:%!xxd\ -r 转换返回<Tab>:%!xxd\ -r
-menutrans Se&T\ Compiler 设定编译器(&T)
+menutrans &Close<Tab>:cclose 关闭(&C)<Tab>:cclose
+" }}}
+menutrans Show\ Compiler\ Se&ttings\ in\ Menu 在菜单中显示编译器设置(&T)
+menutrans Se&t\ Compiler 设置编译器(&T)
+menutrans &Convert\ to\ HEX<Tab>:%!xxd 转换成十六进制(&C)<Tab>:%!xxd
+menutrans Conve&rt\ Back<Tab>:%!xxd\ -r 转换回(&R)<Tab>:%!xxd\ -r
+" }}}
-" Names for buffer menu.
-menutrans &Buffers 缓冲区(&B)
-menutrans &Refresh\ menu 更新菜单(&R)
-menutrans &Delete 删除(&D)
-menutrans &Alternate 交替(&A)
-menutrans &Next 下一个(&N)
-menutrans &Previous 上一个(&P)
+" Buffer menu
+menutrans &Buffers 缓冲区(&B)
+" Buffer menuitems and dialog {{{1
+menutrans &Refresh\ Menu 刷新本菜单(&R)
+menutrans &Delete 删除(&D)
+menutrans &Alternate 切换(&A)
+menutrans &Next 下一个(&N)
+menutrans &Previous 上一个(&P)
+
+" func! s:BMMunge(fname, bnum)
+if !exists("g:menutrans_no_file")
+ let g:menutrans_no_file = "[无文件]"
+endif
+" }}}
" Window menu
-menutrans &Window 窗口(&W)
-menutrans &New<Tab>^Wn 新建(&N)<Tab>^Wn
-menutrans S&plit<Tab>^Ws 分割(&P)<Tab>^Ws
-menutrans Sp&lit\ To\ #<Tab>^W^^ 分割到\ #(&L)<Tab>^W^^
-menutrans Split\ &Vertically<Tab>^Wv 垂直分割(&V)<Tab>^Wv
-menutrans Split\ File\ E&xplorer 分割文件浏览器(&X)
-menutrans &Close<Tab>^Wc 关闭(&C)<Tab>^Wc
-menutrans Close\ &Other(s)<Tab>^Wo 关闭其它窗口(&O)<Tab>^Wo
-menutrans Move\ &To 移动到(&T)
-menutrans &Top<Tab>^WK 顶端(&T)<Tab>^WK
-menutrans &Bottom<Tab>^WJ 底端(&B)<Tab>^WJ
-menutrans &Left\ side<Tab>^WH 左边(&L)<Tab>^WH
-menutrans &Right\ side<Tab>^WL 右边(&R)<Tab>^WL
-" menutrans Ne&xt<Tab>^Ww 下一个(&X)<Tab>^Ww
-" menutrans P&revious<Tab>^WW 上一个(&R)<Tab>^WW
-menutrans Rotate\ &Up<Tab>^WR 向上轮换(&U)<Tab>^WR
-menutrans Rotate\ &Down<Tab>^Wr 向下轮换(&D)<Tab>^Wr
-menutrans &Equal\ Size<Tab>^W= 等大(&E)<Tab>^W=
-menutrans &Max\ Height<Tab>^W_ 最大高度(&M)<Tab>^W
-menutrans M&in\ Height<Tab>^W1_ 最小高度(&I)<Tab>^W1_
-menutrans Max\ &Width<Tab>^W\| 最大宽度(&W)<Tab>^W\|
-menutrans Min\ Widt&h<Tab>^W1\| 最小宽度(&H)<Tab>^W1\|
-"
-" The popup menu
-menutrans &Undo 撤销(&U)
-menutrans Cu&t 剪切(&T)
-menutrans &Copy 复制(&C)
-menutrans &Paste 粘贴(&P)
-menutrans &Delete 删除(&D)
-menutrans Select\ Blockwise 选择块
-menutrans Select\ &Word 选择单词(&W)
-menutrans Select\ &Sentence 选择句子(&S)
-menutrans Select\ Pa&ragraph 选择段落(&R)
-menutrans Select\ &Line 选择行(&L)
-menutrans Select\ &Block 选择块(&B)
-menutrans Select\ &All 全选(&A)
-"
-" The GUI toolbar
+menutrans &Window 窗口(&W)
+" Window menuitems {{{1
+menutrans &New<Tab>^Wn 新建(&N)<Tab>^Wn
+menutrans S&plit<Tab>^Ws 拆分(&P)<Tab>^Ws
+menutrans Sp&lit\ To\ #<Tab>^W^^ 拆分并显示缓冲区\ #(&L)<Tab>^W^^
+menutrans Split\ &Vertically<Tab>^Wv 垂直拆分(&V)<Tab>^Wv
+menutrans Split\ File\ E&xplorer 拆分并打开文件浏览器(&X)
+menutrans &Close<Tab>^Wc 关闭(&C)<Tab>^Wc
+menutrans Close\ &Other(s)<Tab>^Wo 除此之外全部关闭(&O)<Tab>^Wo
+menutrans Move\ &To 移动到(&T)
+menutrans &Top<Tab>^WK 顶端(&T)<Tab>^WK
+menutrans &Bottom<Tab>^WJ 底端(&B)<Tab>^WJ
+menutrans &Left\ Side<Tab>^WH 左边(&L)<Tab>^WH
+menutrans &Right\ Side<Tab>^WL 右边(&R)<Tab>^WL
+menutrans Rotate\ &Up<Tab>^WR 向上轮换(&U)<Tab>^WR
+menutrans Rotate\ &Down<Tab>^Wr 向下轮换(&D)<Tab>^Wr
+menutrans &Equal\ Size<Tab>^W= 平均分布(&E)<Tab>^W=
+menutrans &Max\ Height<Tab>^W_ 最大高度(&M)<Tab>^W
+menutrans M&in\ Height<Tab>^W1_ 最小高度(&I)<Tab>^W1_
+menutrans Max\ &Width<Tab>^W\| 最大宽度(&W)<Tab>^W\|
+menutrans Min\ Widt&h<Tab>^W1\| 最小宽度(&H)<Tab>^W1\|
+" }}}
+
+" The popup menu {{{1
+menutrans &Undo 撤销(&U)
+menutrans Cu&t 剪切(&T)
+menutrans &Copy 复制(&C)
+menutrans &Paste 粘贴(&P)
+menutrans &Delete 删除(&D)
+menutrans Select\ Blockwise 改为选定矩形块
+menutrans Select\ &Word 选定单词(&W)
+menutrans Select\ &Sentence 选定句(&S)
+menutrans Select\ Pa&ragraph 选定段落(&R)
+menutrans Select\ &Line 选定行(&L)
+menutrans Select\ &Block 选定矩形块(&B)
+menutrans Select\ &All 全选(&A)
+
+" func! <SID>SpellPopup()
+if !exists("g:menutrans_spell_change_ARG_to")
+ let g:menutrans_spell_change_ARG_to = '将\ "%s"\ 更改为'
+endif
+if !exists("g:menutrans_spell_add_ARG_to_word_list")
+ let g:menutrans_spell_add_ARG_to_word_list = '将\ "%s"\ 添加到词典'
+endif
+if !exists("g:menutrans_spell_ignore_ARG")
+ let g:menutrans_spell_ignore_ARG = '忽略\ "%s"'
+endif
+" }}}
+
+" The GUI toolbar {{{1
if has("toolbar")
if exists("*Do_toolbar_tmenu")
delfun Do_toolbar_tmenu
endif
fun Do_toolbar_tmenu()
- tmenu ToolBar.Open 打开文件
- tmenu ToolBar.Save 保存当前文件
- tmenu ToolBar.SaveAll 保存全部文件
- tmenu ToolBar.Print 打印
- tmenu ToolBar.Undo 撤销
- tmenu ToolBar.Redo 重做
- tmenu ToolBar.Cut 剪切到剪贴板
- tmenu ToolBar.Copy 复制到剪贴板
- tmenu ToolBar.Paste 从剪贴板粘贴
- tmenu ToolBar.Find 查找...
- tmenu ToolBar.FindNext 查找下一个
- tmenu ToolBar.FindPrev 查找上一个
- tmenu ToolBar.Replace 查找和替换...
- tmenu ToolBar.LoadSesn 加载会话
- tmenu ToolBar.SaveSesn 保存当前会话
- tmenu ToolBar.RunScript 运行 Vim 脚本
- tmenu ToolBar.Make 执行 Make (:make)
- tmenu ToolBar.RunCtags 在当前目录建立 tags (!ctags -R .)
- tmenu ToolBar.TagJump 跳转到光标位置的 tag
- tmenu ToolBar.Help Vim 帮助
- tmenu ToolBar.FindHelp 查找 Vim 帮助
+ let did_toolbar_tmenu = 1
+ tmenu ToolBar.Open 打开文件
+ tmenu ToolBar.Save 保存当前文件
+ tmenu ToolBar.SaveAll 全部保存
+ tmenu ToolBar.Print 打印
+ tmenu ToolBar.Undo 撤销
+ tmenu ToolBar.Redo 恢复
+ tmenu ToolBar.Cut 剪切到剪贴板
+ tmenu ToolBar.Copy 复制到剪贴板
+ tmenu ToolBar.Paste 从剪贴板粘贴
+ if !has("gui_athena")
+ tmenu ToolBar.Replace 查找和替换...
+ tmenu ToolBar.FindNext 查找下一个
+ tmenu ToolBar.FindPrev 查找上一个
+ endif
+ tmenu ToolBar.LoadSesn 加载会话
+ tmenu ToolBar.SaveSesn 保存当前会话
+ tmenu ToolBar.RunScript 运行 Vim 脚本
+ tmenu ToolBar.Make 生成当前项目 (:make)
+ tmenu ToolBar.RunCtags 在当前目录生成标记(Tags) (!ctags -R .)
+ tmenu ToolBar.TagJump 跳转到光标所在标记(Tag)
+ tmenu ToolBar.Help Vim 帮助
+ tmenu ToolBar.FindHelp 在 Vim 帮助中查找
endfun
endif
+" }}}
" Syntax menu
-menutrans &Syntax 语法(&S)
-menutrans &Show\ filetypes\ in\ menu 在菜单中显示文件类型(&S)
-menutrans &Off 关闭(&O)
-menutrans &Manual 手工(&M)
-menutrans A&utomatic 自动(&U)
-menutrans on/off\ for\ &This\ file 仅对这个文件开/关(&T)
-menutrans Co&lor\ test 色彩测试(&L)
-menutrans &Highlight\ test 高亮测试(&H)
-menutrans &Convert\ to\ HTML 转换成\ HTML(&C)
-menutrans Set\ '&syntax'\ only 仅设定\ 'syntax'(&S)
-menutrans Set\ '&filetype'\ too 也设定\ 'filetype'(&F)
+menutrans &Syntax 语法(&S)
+" Syntax menuitems {{{1
+menutrans &Show\ File\ Types\ in\ Menu 在菜单中显示文件类型(&S)
+menutrans &Off 关闭(&O)
+menutrans &Manual 手动(&M)
+menutrans A&utomatic 自动(&U)
+menutrans On/Off\ for\ &This\ File 只对这个文件开/关(&T)
+menutrans Co&lor\ Test 色彩测试(&L)
+menutrans &Highlight\ Test 高亮测试(&H)
+menutrans &Convert\ to\ HTML 转换成\ HTML(&C)
+" From synmenu.vim
+menutrans Set\ '&syntax'\ Only 只设置\ 'syntax'(&S)
+menutrans Set\ '&filetype'\ Too 也设置\ 'filetype'(&F)
+" }}}
+
+" Netrw menu {{{1
+" Plugin loading may be after menu translation
+" So giveup testing if Netrw Plugin is loaded
+" if exists("g:loaded_netrwPlugin")
+ menutrans Help<tab><F1> 帮助<tab><F1>
+ menutrans Bookmarks 书签
+ menutrans History 历史记录
+ menutrans Go\ Up\ Directory<tab>- 向上一级<tab>-
+ menutrans Apply\ Special\ Viewer<tab>x 用默认程序打开<tab>x
+ menutrans Bookmarks\ and\ History 书签和历史记录
+ " Netrw.Bookmarks and History menuitems {{{2
+ menutrans Bookmark\ Current\ Directory<tab>mb 添加书签<tab>mb
+ menutrans Bookmark\ Delete 移除书签
+ menutrans Goto\ Prev\ Dir\ (History)<tab>u 后退(历史记录)<tab>u
+ menutrans Goto\ Next\ Dir\ (History)<tab>U 前进(历史记录)<tab>U
+ menutrans List<tab>qb 完整列表<tab>qb
+ " }}}
+ menutrans Browsing\ Control 控制
+ " Netrw.Browsing Control menuitems {{{2
+ menutrans Horizontal\ Split<tab>o 在拆分窗口打开<tab>o
+ menutrans Vertical\ Split<tab>v 在垂直拆分窗口打开<tab>v
+ menutrans New\ Tab<tab>t 在标签页打开<tab>t
+ menutrans Preview<tab>p 预览<tab>p
+ menutrans Edit\ File\ Hiding\ List<tab><ctrl-h> 编辑隐藏条件(Hiding\ List)<tab><ctrl-h>
+ menutrans Edit\ Sorting\ Sequence<tab>S 编辑排序条件(Sorting\ Sequence)<tab>S
+ menutrans Quick\ Hide/Unhide\ Dot\ Files<tab>gh 快速隐藏/显示以\.开头的文件<tab>gh
+ menutrans Refresh\ Listing<tab><ctrl-l> 刷新<tab><ctrl-l>
+ menutrans Settings/Options<tab>:NetrwSettings 设置/选项<tab>:NetrwSettings
+ " }}}
+ menutrans Delete\ File/Directory<tab>D 删除文件/目录<tab>D
+ menutrans Edit\ File/Dir 编辑文件/目录
+ " Netrw.Edit File menuitems {{{2
+ menutrans Create\ New\ File<tab>% 新建文件<tab>%
+ menutrans In\ Current\ Window<tab><cr> 在当前窗口<tab><cr>
+ menutrans Preview\ File/Directory<tab>p 预览文件/目录<tab>p
+ menutrans In\ Previous\ Window<tab>P 在上一个窗口<tab>P
+ menutrans In\ New\ Window<tab>o 在新窗口<tab>o
+ menutrans In\ New\ Tab<tab>t 在新标签页<tab>t
+ menutrans In\ New\ Vertical\ Window<tab>v 在新垂直窗口<tab>v
+ " }}}
+ menutrans Explore 浏览
+ " Netrw.Explore menuitems {{{2
+ menutrans Directory\ Name 指定目录名
+ menutrans Filenames\ Matching\ Pattern\ (curdir\ only)<tab>:Explore\ */ 匹配指定文件名模式(当前目录)<tab>:Explore\ */
+ menutrans Filenames\ Matching\ Pattern\ (+subdirs)<tab>:Explore\ **/ 匹配指定文件名模式(含子目录)<tab>:Explore\ **/
+ menutrans Files\ Containing\ String\ Pattern\ (curdir\ only)<tab>:Explore\ *// 内容包含指定字符串模式(当前目录)<tab>:Explore\ *//
+ menutrans Files\ Containing\ String\ Pattern\ (+subdirs)<tab>:Explore\ **// 内容包含指定字符串模式(含子目录)<tab>:Explore\ **//
+ menutrans Next\ Match<tab>:Nexplore 下一个匹配项<tab>:Nexplore
+ menutrans Prev\ Match<tab>:Pexplore 上一个匹配项<tab>:Pexplore
+ " }}}
+ menutrans Make\ Subdirectory<tab>d 新建子目录<tab>d
+ menutrans Marked\ Files 选定的(Marked)文件
+ " Netrw.Marked Files menuitems {{{2
+ menutrans Mark\ File<tab>mf 选定(Mark)/取消<tab>mf
+ menutrans Mark\ Files\ by\ Regexp<tab>mr 用正则表达式(Regexp)选定<tab>mr
+ menutrans Hide-Show-List\ Control<tab>a 隐藏/显示<tab>a
+ menutrans Copy\ To\ Target<tab>mc 复制到目标<tab>mc
+ menutrans Delete<tab>D 删除<tab>D
+ menutrans Diff<tab>md 差异(Diff)<tab>md
+ menutrans Edit<tab>me 编辑<tab>me
+ menutrans Exe\ Cmd<tab>mx 作为参数运行命令<tab>mx
+ menutrans Move\ To\ Target<tab>mm 移动到目标<tab>mm
+ menutrans Obtain<tab>O 获取<tab>O
+ menutrans Print<tab>mp 打印<tab>mp
+ menutrans Replace<tab>R 替换<tab>R
+ menutrans Set\ Target<tab>mt 设置目标<tab>mt
+ menutrans Tag<tab>mT 生成标记文件(Tags)<tab>mT
+ menutrans Zip/Unzip/Compress/Uncompress<tab>mz 压缩/解压缩<tab>mz
+ " }}}
+ menutrans Obtain\ File<tab>O 获取文件<tab>O
+ menutrans Style 显示风格
+ " Netrw.Style menuitems {{{2
+ menutrans Listing 列表形式
+ " Netrw.Style.Listing menuitems {{{3
+ menutrans thin<tab>i 紧凑<thin)<tab>i
+ menutrans long<tab>i 详细(long)<tab>i
+ menutrans wide<tab>i 多列(wide)<tab>i
+ menutrans tree<tab>i 树状(tree)<tab>i
+ " }}}
+ menutrans Normal-Hide-Show 显示/隐藏
+ " Netrw.Style.Normal-Hide_show menuitems {{{3
+ menutrans Show\ All<tab>a 显示全部
+ menutrans Normal<tab>a 不显示隐藏文件
+ menutrans Hidden\ Only<tab>a 只显示隐藏文件
+ " }}}
+ menutrans Reverse\ Sorting\ Order<tab>r 升序/降序<tab>r
+ menutrans Sorting\ Method 排序方式
+ " Netrw.Style.Sorting Method menuitems {{{3
+ menutrans Name<tab>s 文件名<tab>s
+ menutrans Time<tab>s 修改时间<tab>s
+ menutrans Size<tab>s 大小<tab>s
+ menutrans Exten<tab>s 扩展名<tab>s
+ " }}}
+ " }}}
+ menutrans Rename\ File/Directory<tab>R 重命名文件/目录<tab>R
+ menutrans Set\ Current\ Directory<tab>c 设置\ Vim\ 工作目录<tab>c
+ menutrans Targets 目标
+" endif
+" }}}
let &cpo = s:keepcpo
unlet s:keepcpo
+
+" vim: set ts=4 sw=4 noet fdm=marker fdc=4 :
diff --git a/runtime/syntax/debchangelog.vim b/runtime/syntax/debchangelog.vim
index 9d6dfe96a..2d612061f 100644
--- a/runtime/syntax/debchangelog.vim
+++ b/runtime/syntax/debchangelog.vim
@@ -3,7 +3,7 @@
" Maintainer: Debian Vim Maintainers
" Former Maintainers: Gerfried Fuchs <alfie@ist.org>
" Wichert Akkerman <wakkerma@debian.org>
-" Last Change: 2019 Apr 21
+" Last Change: 2019 Sep 07
" URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/syntax/debchangelog.vim
" Standard syntax initialization
@@ -21,7 +21,7 @@ let s:binNMU='binary-only=yes'
syn match debchangelogName contained "^[[:alnum:]][[:alnum:].+-]\+ "
exe 'syn match debchangelogFirstKV contained "; \('.s:urgency.'\|'.s:binNMU.'\)"'
exe 'syn match debchangelogOtherKV contained ", \('.s:urgency.'\|'.s:binNMU.'\)"'
-syn match debchangelogTarget contained "\v %(frozen|unstable|sid|%(testing|%(old)=stable)%(-proposed-updates|-security)=|experimental|%(squeeze|wheezy|jessie)-%(backports%(-sloppy)=|lts|security)|stretch%(-backports%(-sloppy)=|-security)=|buster%(-backports|-security)=|bullseye|%(devel|precise|trusty|vivid|wily|xenial|yakkety|zesty|artful|bionic|cosmic|disco|eoan)%(-%(security|proposed|updates|backports|commercial|partner))=)+"
+syn match debchangelogTarget contained "\v %(frozen|unstable|sid|%(testing|%(old)=stable)%(-proposed-updates|-security)=|experimental|%(squeeze|wheezy|jessie)-%(backports%(-sloppy)=|lts|security)|stretch%(-backports%(-sloppy)=|-security)=|buster%(-backports|-security)=|bullseye|bookworm|%(devel|precise|trusty|vivid|wily|xenial|yakkety|zesty|artful|bionic|cosmic|disco|eoan)%(-%(security|proposed|updates|backports|commercial|partner))=)+"
syn match debchangelogVersion contained "(.\{-})"
syn match debchangelogCloses contained "closes:\_s*\(bug\)\=#\=\_s\=\d\+\(,\_s*\(bug\)\=#\=\_s\=\d\+\)*"
syn match debchangelogLP contained "\clp:\s\+#\d\+\(,\s*#\d\+\)*"
diff --git a/runtime/syntax/debcopyright.vim b/runtime/syntax/debcopyright.vim
index c85ca372d..c87b876ee 100644
--- a/runtime/syntax/debcopyright.vim
+++ b/runtime/syntax/debcopyright.vim
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: Debian copyright file
" Maintainer: Debian Vim Maintainers
-" Last Change: 2018 Feb 05
+" Last Change: 2019 Sep 07
" URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/syntax/debcopyright.vim
" Standard syntax initialization
@@ -15,7 +15,7 @@ set cpo&vim
syn case match
syn match debcopyrightUrl "\vhttps?://[[:alnum:]][-[:alnum:]]*[[:alnum:]]?(\.[[:alnum:]][-[:alnum:]]*[[:alnum:]]?)*\.[[:alpha:]][-[:alnum:]]*[[:alpha:]]?(:\d+)?(/[^[:space:]]*)?$"
-syn match debcopyrightKey "^\%(Format\|Upstream-Name\|Upstream-Contact\|Disclaimer\|Source\|Comment\|Files\|Copyright\|License\): *"
+syn match debcopyrightKey "^\%(Format\|Upstream-Name\|Upstream-Contact\|Disclaimer\|Source\|Comment\|Files\|Copyright\|License\|Files-Excluded\%(-[-a-zA-Z0-9]\+\)\=\): *"
syn match debcopyrightEmail "[_=[:alnum:]\.+-]\+@[[:alnum:]\./\-]\+"
syn match debcopyrightEmail "<.\{-}>"
syn match debcopyrightComment "^#.*$" contains=@Spell
diff --git a/runtime/syntax/debsources.vim b/runtime/syntax/debsources.vim
index f90476fe2..97acbf60f 100644
--- a/runtime/syntax/debsources.vim
+++ b/runtime/syntax/debsources.vim
@@ -2,7 +2,7 @@
" Language: Debian sources.list
" Maintainer: Debian Vim Maintainers
" Former Maintainer: Matthijs Mohlmann <matthijs@cacholong.nl>
-" Last Change: 2019 Apr 21
+" Last Change: 2019 Sep 07
" URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/syntax/debsources.vim
" Standard syntax initialization
@@ -26,7 +26,7 @@ let s:supported = [
\ 'wheezy', 'jessie', 'stretch', 'buster', 'bullseye', 'bookworm',
\ 'sid', 'rc-buggy',
\
- \ 'trusty', 'xenial', 'bionic', 'cosmic', 'disco', 'eoan', 'devel'
+ \ 'trusty', 'xenial', 'bionic', 'disco', 'eoan', 'devel'
\ ]
let s:unsupported = [
\ 'buzz', 'rex', 'bo', 'hamm', 'slink', 'potato',
@@ -35,7 +35,7 @@ let s:unsupported = [
\ 'warty', 'hoary', 'breezy', 'dapper', 'edgy', 'feisty',
\ 'gutsy', 'hardy', 'intrepid', 'jaunty', 'karmic', 'lucid',
\ 'maverick', 'natty', 'oneiric', 'precise', 'quantal', 'raring', 'saucy',
- \ 'utopic', 'vivid', 'wily', 'yakkety', 'zesty', 'artful'
+ \ 'utopic', 'vivid', 'wily', 'yakkety', 'zesty', 'artful', 'cosmic'
\ ]
let &cpo=s:cpo
diff --git a/runtime/syntax/freebasic.vim b/runtime/syntax/freebasic.vim
index bce7f9ebc..68e838f39 100644
--- a/runtime/syntax/freebasic.vim
+++ b/runtime/syntax/freebasic.vim
@@ -1,12 +1,13 @@
" Vim syntax file
" Language: FreeBasic
-" Maintainer: Mark Manning <markem@airmail.net>
-" Updated: 10/22/2006
+" Maintainer: Mark Manning <markem@sim1.us>
+" Updated: 10/9/2019
+" Version: 7.0b
"
" Description:
"
" Based originally on the work done by Allan Kelly <Allan.Kelly@ed.ac.uk>
-" Updated by Mark Manning <markem@airmail.net>
+" Updated by Mark Manning <markem@sim1.us>
" Applied FreeBasic support to the already excellent support
" for standard basic syntax (like QB).
"
@@ -138,7 +139,7 @@ syn keyword freebasicUserInput GETJOYSTICK GETKEY GETMOUSE INKEY INPUT MULTIKEY
" types of identifiers like functions, basic commands and
" such. MEM 9/9/2006
"
-syn match freebasicIdentifier "\<[a-zA-Z_][a-zA-Z0-9_]*\>"
+syn match freebasicIdentifier "\<[a-zA-Z_][a-zA-Z0-9_]*\>"
syn match freebasicGenericFunction "\<[a-zA-Z_][a-zA-Z0-9_]*\>\s*("me=e-1,he=e-1
"
" Function list
@@ -154,9 +155,13 @@ syn cluster freebasicParenGroup contains=freebasicParenError,freebasicSpecial,fr
"
" Integer number, or floating point number without a dot and with "f".
"
-syn region freebasicHex start="&h" end="\W"
-syn region freebasicHexError start="&h\x*[g-zG-Z]" end="\W"
-syn match freebasicInteger "\<\d\+\(u\=l\=\|lu\|f\)\>"
+syn region freebasicHex start="&h" end="\W"
+syn region freebasicHexError start="&h\x*[g-zG-Z]" end="\W"
+syn region freebasicOctal start="&o" end="\W"
+syn region freebasicOctalError start="&o[0-7]*[89a-zA-Z]" end="\W"
+syn region freebasicBinary start="&b" end="\W"
+syn region freebasicBinaryError start="&b[01]*[2-9a-zA-Z]" end="\W"
+syn match freebasicInteger "\<\d\+\(u\=l\=\|lu\|f\)\>"
"
" Floating point number, with dot, optional exponent
"
@@ -170,11 +175,11 @@ syn match freebasicFloat "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>"
"
syn match freebasicFloat "\<\d\+e[-+]\=\d\+[fl]\=\>"
"
-" Hex number
+" Octal number
"
syn case match
-syn match freebasicOctal "\<0\o*\>"
-syn match freebasicOctalError "\<0\o*[89]"
+syn match freebasicOctal2 "\<0\o*\>"
+syn match freebasicOctal2Error "\<0\o*[89a-zA-Z]"
"
" String and Character contstants
"
@@ -183,7 +188,7 @@ syn region freebasicString start="'" end="'" contains=freebasicSpecial,freebasi
"
" Comments
"
-syn match freebasicSpecial contained "\\."
+syn match freebasicSpecial contained "\\\\."
syn region freebasicComment start="^rem" end="$" contains=freebasicSpecial,freebasicTodo
syn region freebasicComment start=":\s*rem" end="$" contains=freebasicSpecial,freebasicTodo
syn region freebasicComment start="\s*'" end="$" contains=freebasicSpecial,freebasicTodo
@@ -197,12 +202,12 @@ syn region freebasicLineNumber start="^\d" end="\s"
"
" Create the clusters
"
-syn cluster freebasicNumber contains=freebasicHex,freebasicOctal,freebasicInteger,freebasicFloat
-syn cluster freebasicError contains=freebasicHexError,freebasicOctalError
+syn cluster freebasicNumber contains=freebasicHex,freebasicOctal,freebasicOctal2,freebasicBinary,freebasicInteger,freebasicFloat
+syn cluster freebasicError contains=freebasicHexError,freebasicOctalError,freebasicOctal2,freebasicBinary
"
" Used with OPEN statement
"
-syn match freebasicFilenumber "#\d\+"
+syn match freebasicFilenumber "#\d\+"
syn match freebasicMathOperator "[\+\-\=\|\*\/\>\<\%\()[\]]" contains=freebasicParen
"
" The default methods for highlighting. Can be overridden later
diff --git a/runtime/syntax/sshconfig.vim b/runtime/syntax/sshconfig.vim
index 755d08e76..6c36f56af 100644
--- a/runtime/syntax/sshconfig.vim
+++ b/runtime/syntax/sshconfig.vim
@@ -5,7 +5,8 @@
" Contributor: Leonard Ehrenfried <leonard.ehrenfried@web.de>
" Contributor: Karsten Hopp <karsten@redhat.com>
" Contributor: Dean, Adam Kenneth <adam.ken.dean@hpe.com>
-" Last Change: 2016 Dec 28
+" Last Change: 2019 Sep 09
+" Added RemoteCommand from pull request #4809
" SSH Version: 7.4p1
"
@@ -206,6 +207,7 @@ syn keyword sshconfigKeyword PubkeyAcceptedKeyTypes
syn keyword sshconfigKeyword PubkeyAuthentication
syn keyword sshconfigKeyword RSAAuthentication
syn keyword sshconfigKeyword RekeyLimit
+syn keyword sshconfigKeyword RemoteCommand
syn keyword sshconfigKeyword RemoteForward
syn keyword sshconfigKeyword RequestTTY
syn keyword sshconfigKeyword RhostsRSAAuthentication
diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim
index 2ed4b30a8..78c9d26a5 100644
--- a/runtime/syntax/vim.vim
+++ b/runtime/syntax/vim.vim
@@ -28,6 +28,9 @@ syn keyword vimCommand contained al[l] argg[lobal] b[uffer] bl[ast] brea[k] buff
syn match vimCommand contained "\<z[-+^.=]\=\>"
syn keyword vimStdPlugin contained Arguments Break Cfilter Clear Continue DiffOrig Evaluate Finish Gdb Lfilter Man N[ext] Over P[rint] Program Run S Source Step Stop Termdebug TermdebugCommand TOhtml Winbar XMLent XMLns
+" added later
+syn keyword vimCommand contained eval
+
" vimOptions are caught only when contained in a vimSet {{{2
syn keyword vimOption contained acd ambw arshape background ballooneval bex bl brk buftype cf cinkeys cmdwinheight com conceallevel crb cscopeverbose cuc def diffexpr ea ei ep eventignore fdi fenc fileformat fkmap foldexpr foldopen fsync gfw guicursor guitabtooltip hidden hlg imactivatefunc imi inc inex isident keymap langnoremap linespace loadplugins ma matchtime mef mle modelineexpr mousehide mps nu opendevice paste pex pmbcs printdevice printoptions pw qe relativenumber rightleft rs runtimepath scr sect sft shellredir shiftwidth showmatch signcolumn smarttab sp spf srr startofline suffixes switchbuf ta tagfunc tbi term termwintype tgc titlelen toolbariconsize ttimeout ttymouse twt undofile varsofttabstop verbosefile viminfofile wak weirdinvert wig wildoptions winheight wm wrapscan
syn keyword vimOption contained ai anti autochdir backspace balloonevalterm bexpr bo browsedir casemap cfu cino cmp comments confirm cryptmethod cspc cul define diffopt ead ek equalalways ex fdl fencs fileformats flp foldignore foldtext ft ghr guifont helpfile highlight hls imactivatekey iminsert include inf isk keymodel langremap lisp lpl macatsui maxcombine menc mls modelines mousem msm number operatorfunc pastetoggle pexpr pmbfn printencoding prompt pythondll quoteescape remap rightleftcmd rtp sb scroll sections sh shellslash shm showmode siso smc spc spl ss statusline suffixesadd sws tabline taglength tbidi termbidi terse tgst titleold top ttimeoutlen ttyscroll tx undolevels vartabstop vfile virtualedit warn wfh wildchar wim winminheight wmh write
diff --git a/runtime/syntax/yaml.vim b/runtime/syntax/yaml.vim
index 626dc8a77..49f7d049a 100644
--- a/runtime/syntax/yaml.vim
+++ b/runtime/syntax/yaml.vim
@@ -3,6 +3,7 @@
" Maintainer: Nikolai Pavlov <zyx.vim@gmail.com>
" First author: Nikolai Weibull <now@bitwi.se>
" Latest Revision: 2015-03-28
+" removed duplicate yamlKeyValueDelimiter (pull #4799)
if exists('b:current_syntax')
finish
@@ -150,7 +151,6 @@ syn match yamlBlockMappingMerge /^\s*\zs<<\ze:\%(\s\|$\)/ nextgroup=yamlKeyValue
syn match yamlBlockMappingMerge /<<\ze\s*:\%(\s\|$\)/ nextgroup=yamlKeyValueDelimiter contained
syn match yamlKeyValueDelimiter /\s*:/ contained
-syn match yamlKeyValueDelimiter /\s*:/ contained
syn cluster yamlScalarWithSpecials contains=yamlPlainScalar,yamlBlockMappingKey,yamlFlowMappingKey
diff --git a/runtime/vim.desktop b/runtime/vim.desktop
index ec7ece4f8..276ddc625 100644
--- a/runtime/vim.desktop
+++ b/runtime/vim.desktop
@@ -19,6 +19,7 @@ Comment=Edit text files
# be overwritten by the po file when generating the desktop.file.
GenericName[da]=Teksteditor
GenericName[pl]=Edytor tekstu
+GenericName[sr]=Едитор текста
GenericName[is]=Ritvinnsluforrit
Comment[af]=Redigeer tekslêers
Comment[am]=የጽሑፍ ፋይሎች ያስተካክሉ