comparison runtime/menu.vim @ 11062:1218c5353e2b

Runtime file updates. commit https://github.com/vim/vim/commit/214641f77df6f318a4b3a0b09723c19859a103f4 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 5 17:04:09 2017 +0100 Runtime file updates.
author Christian Brabandt <cb@256bit.org>
date Sun, 05 Mar 2017 17:15:05 +0100
parents c391bfbdb452
children 6687b321fb91
comparison
equal deleted inserted replaced
11061:0f11b92d7f5e 11062:1218c5353e2b
1 " Vim support file to define the default menus 1 " Vim support file to define the default menus
2 " You can also use this as a start for your own set of menus. 2 " You can also use this as a start for your own set of menus.
3 " 3 "
4 " Maintainer: Bram Moolenaar <Bram@vim.org> 4 " Maintainer: Bram Moolenaar <Bram@vim.org>
5 " Last Change: 2017 Feb 09 5 " Last Change: 2017 Mar 04
6 6
7 " Note that ":an" (short for ":anoremenu") is often used to make a menu work 7 " Note that ":an" (short for ":anoremenu") is often used to make a menu work
8 " in all modes and avoid side effects from mappings defined by the user. 8 " in all modes and avoid side effects from mappings defined by the user.
9 9
10 " Make sure the '<' and 'C' flags are not included in 'cpoptions', otherwise 10 " Make sure the '<' and 'C' flags are not included in 'cpoptions', otherwise
68 68
69 69
70 " Help menu 70 " Help menu
71 an 9999.10 &Help.&Overview<Tab><F1> :help<CR> 71 an 9999.10 &Help.&Overview<Tab><F1> :help<CR>
72 an 9999.20 &Help.&User\ Manual :help usr_toc<CR> 72 an 9999.20 &Help.&User\ Manual :help usr_toc<CR>
73 an 9999.30 &Help.&How-to\ links :help how-to<CR> 73 an 9999.30 &Help.&How-To\ Links :help how-to<CR>
74 an <silent> 9999.40 &Help.&Find\.\.\. :call <SID>Helpfind()<CR> 74 an <silent> 9999.40 &Help.&Find\.\.\. :call <SID>Helpfind()<CR>
75 an 9999.45 &Help.-sep1- <Nop> 75 an 9999.45 &Help.-sep1- <Nop>
76 an 9999.50 &Help.&Credits :help credits<CR> 76 an 9999.50 &Help.&Credits :help credits<CR>
77 an 9999.60 &Help.Co&pying :help copying<CR> 77 an 9999.60 &Help.Co&pying :help copying<CR>
78 an 9999.70 &Help.&Sponsor/Register :help sponsor<CR> 78 an 9999.70 &Help.&Sponsor/Register :help sponsor<CR>
110 an <silent> 10.340 &File.&Save<Tab>:w :if expand("%") == ""<Bar>browse confirm w<Bar>else<Bar>confirm w<Bar>endif<CR> 110 an <silent> 10.340 &File.&Save<Tab>:w :if expand("%") == ""<Bar>browse confirm w<Bar>else<Bar>confirm w<Bar>endif<CR>
111 an 10.350 &File.Save\ &As\.\.\.<Tab>:sav :browse confirm saveas<CR> 111 an 10.350 &File.Save\ &As\.\.\.<Tab>:sav :browse confirm saveas<CR>
112 112
113 if has("diff") 113 if has("diff")
114 an 10.400 &File.-SEP2- <Nop> 114 an 10.400 &File.-SEP2- <Nop>
115 an 10.410 &File.Split\ &Diff\ with\.\.\. :browse vert diffsplit<CR> 115 an 10.410 &File.Split\ &Diff\ With\.\.\. :browse vert diffsplit<CR>
116 an 10.420 &File.Split\ Patched\ &By\.\.\. :browse vert diffpatch<CR> 116 an 10.420 &File.Split\ Patched\ &By\.\.\. :browse vert diffpatch<CR>
117 endif 117 endif
118 118
119 if has("printer") 119 if has("printer")
120 an 10.500 &File.-SEP3- <Nop> 120 an 10.500 &File.-SEP3- <Nop>
212 return substitute(@", "[\r\n]", '\\n', 'g') 212 return substitute(@", "[\r\n]", '\\n', 'g')
213 endfun 213 endfun
214 214
215 " Edit/Global Settings 215 " Edit/Global Settings
216 an 20.440.100 &Edit.&Global\ Settings.Toggle\ Pattern\ &Highlight<Tab>:set\ hls! :set hls! hls?<CR> 216 an 20.440.100 &Edit.&Global\ Settings.Toggle\ Pattern\ &Highlight<Tab>:set\ hls! :set hls! hls?<CR>
217 an 20.440.110 &Edit.&Global\ Settings.Toggle\ &Ignore-case<Tab>:set\ ic! :set ic! ic?<CR> 217 an 20.440.110 &Edit.&Global\ Settings.Toggle\ &Ignoring\ Case<Tab>:set\ ic! :set ic! ic?<CR>
218 an 20.440.110 &Edit.&Global\ Settings.Toggle\ &Showmatch<Tab>:set\ sm! :set sm! sm?<CR> 218 an 20.440.110 &Edit.&Global\ Settings.Toggle\ &Showing\ Matched\ Pairs<Tab>:set\ sm! :set sm! sm?<CR>
219 219
220 an 20.440.120 &Edit.&Global\ Settings.&Context\ lines.\ 1\ :set so=1<CR> 220 an 20.440.120 &Edit.&Global\ Settings.&Context\ Lines.\ 1\ :set so=1<CR>
221 an 20.440.120 &Edit.&Global\ Settings.&Context\ lines.\ 2\ :set so=2<CR> 221 an 20.440.120 &Edit.&Global\ Settings.&Context\ Lines.\ 2\ :set so=2<CR>
222 an 20.440.120 &Edit.&Global\ Settings.&Context\ lines.\ 3\ :set so=3<CR> 222 an 20.440.120 &Edit.&Global\ Settings.&Context\ Lines.\ 3\ :set so=3<CR>
223 an 20.440.120 &Edit.&Global\ Settings.&Context\ lines.\ 4\ :set so=4<CR> 223 an 20.440.120 &Edit.&Global\ Settings.&Context\ Lines.\ 4\ :set so=4<CR>
224 an 20.440.120 &Edit.&Global\ Settings.&Context\ lines.\ 5\ :set so=5<CR> 224 an 20.440.120 &Edit.&Global\ Settings.&Context\ Lines.\ 5\ :set so=5<CR>
225 an 20.440.120 &Edit.&Global\ Settings.&Context\ lines.\ 7\ :set so=7<CR> 225 an 20.440.120 &Edit.&Global\ Settings.&Context\ Lines.\ 7\ :set so=7<CR>
226 an 20.440.120 &Edit.&Global\ Settings.&Context\ lines.\ 10\ :set so=10<CR> 226 an 20.440.120 &Edit.&Global\ Settings.&Context\ Lines.\ 10\ :set so=10<CR>
227 an 20.440.120 &Edit.&Global\ Settings.&Context\ lines.\ 100\ :set so=100<CR> 227 an 20.440.120 &Edit.&Global\ Settings.&Context\ Lines.\ 100\ :set so=100<CR>
228 228
229 an 20.440.130.40 &Edit.&Global\ Settings.&Virtual\ Edit.Never :set ve=<CR> 229 an 20.440.130.40 &Edit.&Global\ Settings.&Virtual\ Edit.Never :set ve=<CR>
230 an 20.440.130.50 &Edit.&Global\ Settings.&Virtual\ Edit.Block\ Selection :set ve=block<CR> 230 an 20.440.130.50 &Edit.&Global\ Settings.&Virtual\ Edit.Block\ Selection :set ve=block<CR>
231 an 20.440.130.60 &Edit.&Global\ Settings.&Virtual\ Edit.Insert\ mode :set ve=insert<CR> 231 an 20.440.130.60 &Edit.&Global\ Settings.&Virtual\ Edit.Insert\ Mode :set ve=insert<CR>
232 an 20.440.130.70 &Edit.&Global\ Settings.&Virtual\ Edit.Block\ and\ Insert :set ve=block,insert<CR> 232 an 20.440.130.70 &Edit.&Global\ Settings.&Virtual\ Edit.Block\ and\ Insert :set ve=block,insert<CR>
233 an 20.440.130.80 &Edit.&Global\ Settings.&Virtual\ Edit.Always :set ve=all<CR> 233 an 20.440.130.80 &Edit.&Global\ Settings.&Virtual\ Edit.Always :set ve=all<CR>
234 an 20.440.140 &Edit.&Global\ Settings.Toggle\ Insert\ &Mode<Tab>:set\ im! :set im!<CR> 234 an 20.440.140 &Edit.&Global\ Settings.Toggle\ Insert\ &Mode<Tab>:set\ im! :set im!<CR>
235 an 20.440.145 &Edit.&Global\ Settings.Toggle\ Vi\ C&ompatible<Tab>:set\ cp! :set cp!<CR> 235 an 20.440.145 &Edit.&Global\ Settings.Toggle\ Vi\ C&ompatibility<Tab>:set\ cp! :set cp!<CR>
236 an <silent> 20.440.150 &Edit.&Global\ Settings.Search\ &Path\.\.\. :call <SID>SearchP()<CR> 236 an <silent> 20.440.150 &Edit.&Global\ Settings.Search\ &Path\.\.\. :call <SID>SearchP()<CR>
237 an <silent> 20.440.160 &Edit.&Global\ Settings.Ta&g\ Files\.\.\. :call <SID>TagFiles()<CR> 237 an <silent> 20.440.160 &Edit.&Global\ Settings.Ta&g\ Files\.\.\. :call <SID>TagFiles()<CR>
238 " 238 "
239 " GUI options 239 " GUI options
240 an 20.440.300 &Edit.&Global\ Settings.-SEP1- <Nop> 240 an 20.440.300 &Edit.&Global\ Settings.-SEP1- <Nop>
274 274
275 " Edit/File Settings 275 " Edit/File Settings
276 276
277 " Boolean options 277 " Boolean options
278 an 20.440.100 &Edit.F&ile\ Settings.Toggle\ Line\ &Numbering<Tab>:set\ nu! :set nu! nu?<CR> 278 an 20.440.100 &Edit.F&ile\ Settings.Toggle\ Line\ &Numbering<Tab>:set\ nu! :set nu! nu?<CR>
279 an 20.440.105 &Edit.F&ile\ Settings.Toggle\ relati&ve\ Line\ Numbering<Tab>:set\ rnu! :set rnu! rnu?<CR> 279 an 20.440.105 &Edit.F&ile\ Settings.Toggle\ Relati&ve\ Line\ Numbering<Tab>:set\ rnu! :set rnu! rnu?<CR>
280 an 20.440.110 &Edit.F&ile\ Settings.Toggle\ &List\ Mode<Tab>:set\ list! :set list! list?<CR> 280 an 20.440.110 &Edit.F&ile\ Settings.Toggle\ &List\ Mode<Tab>:set\ list! :set list! list?<CR>
281 an 20.440.120 &Edit.F&ile\ Settings.Toggle\ Line\ &Wrap<Tab>:set\ wrap! :set wrap! wrap?<CR> 281 an 20.440.120 &Edit.F&ile\ Settings.Toggle\ Line\ &Wrapping<Tab>:set\ wrap! :set wrap! wrap?<CR>
282 an 20.440.130 &Edit.F&ile\ Settings.Toggle\ W&rap\ at\ word<Tab>:set\ lbr! :set lbr! lbr?<CR> 282 an 20.440.130 &Edit.F&ile\ Settings.Toggle\ W&rapping\ at\ Word<Tab>:set\ lbr! :set lbr! lbr?<CR>
283 an 20.440.160 &Edit.F&ile\ Settings.Toggle\ &expand-tab<Tab>:set\ et! :set et! et?<CR> 283 an 20.440.160 &Edit.F&ile\ Settings.Toggle\ Tab\ &Expanding<Tab>:set\ et! :set et! et?<CR>
284 an 20.440.170 &Edit.F&ile\ Settings.Toggle\ &auto-indent<Tab>:set\ ai! :set ai! ai?<CR> 284 an 20.440.170 &Edit.F&ile\ Settings.Toggle\ &Auto\ Indenting<Tab>:set\ ai! :set ai! ai?<CR>
285 an 20.440.180 &Edit.F&ile\ Settings.Toggle\ &C-indenting<Tab>:set\ cin! :set cin! cin?<CR> 285 an 20.440.180 &Edit.F&ile\ Settings.Toggle\ &C-Style\ Indenting<Tab>:set\ cin! :set cin! cin?<CR>
286 286
287 " other options 287 " other options
288 an 20.440.600 &Edit.F&ile\ Settings.-SEP2- <Nop> 288 an 20.440.600 &Edit.F&ile\ Settings.-SEP2- <Nop>
289 an 20.440.610.20 &Edit.F&ile\ Settings.&Shiftwidth.2 :set sw=2 sw?<CR> 289 an 20.440.610.20 &Edit.F&ile\ Settings.&Shiftwidth.2 :set sw=2 sw?<CR>
290 an 20.440.610.30 &Edit.F&ile\ Settings.&Shiftwidth.3 :set sw=3 sw?<CR> 290 an 20.440.610.30 &Edit.F&ile\ Settings.&Shiftwidth.3 :set sw=3 sw?<CR>
309 let n = inputdialog(g:menutrans_textwidth_dialog, &tw) 309 let n = inputdialog(g:menutrans_textwidth_dialog, &tw)
310 if n != "" 310 if n != ""
311 " Remove leading zeros to avoid it being used as an octal number. 311 " Remove leading zeros to avoid it being used as an octal number.
312 " But keep a zero by itself. 312 " But keep a zero by itself.
313 let tw = substitute(n, "^0*", "", "") 313 let tw = substitute(n, "^0*", "", "")
314 let &tw = tw == '' ? 0 : tw 314 let &tw = tw == '' ? 0 : tw
315 endif 315 endif
316 endfun 316 endfun
317 317
318 fun! s:FileFormat() 318 fun! s:FileFormat()
319 if !exists("g:menutrans_fileformat_dialog") 319 if !exists("g:menutrans_fileformat_dialog")
394 else 394 else
395 let g:ctags_command = "ctags -R ." 395 let g:ctags_command = "ctags -R ."
396 endif 396 endif
397 endif 397 endif
398 398
399 an 40.300 &Tools.&Jump\ to\ this\ tag<Tab>g^] g<C-]> 399 an 40.300 &Tools.&Jump\ to\ This\ Tag<Tab>g^] g<C-]>
400 vunmenu &Tools.&Jump\ to\ this\ tag<Tab>g^] 400 vunmenu &Tools.&Jump\ to\ This\ Tag<Tab>g^]
401 vnoremenu &Tools.&Jump\ to\ this\ tag<Tab>g^] g<C-]> 401 vnoremenu &Tools.&Jump\ to\ This\ Tag<Tab>g^] g<C-]>
402 an 40.310 &Tools.Jump\ &back<Tab>^T <C-T> 402 an 40.310 &Tools.Jump\ &Back<Tab>^T <C-T>
403 an 40.320 &Tools.Build\ &Tags\ File :exe "!" . g:ctags_command<CR> 403 an 40.320 &Tools.Build\ &Tags\ File :exe "!" . g:ctags_command<CR>
404 404
405 if has("folding") || has("spell") 405 if has("folding") || has("spell")
406 an 40.330 &Tools.-SEP1- <Nop> 406 an 40.330 &Tools.-SEP1- <Nop>
407 endif 407 endif
408 408
409 " Tools.Spelling Menu 409 " Tools.Spelling Menu
410 if has("spell") 410 if has("spell")
411 an 40.335.110 &Tools.&Spelling.&Spell\ Check\ On :set spell<CR> 411 an 40.335.110 &Tools.&Spelling.&Spell\ Check\ On :set spell<CR>
412 an 40.335.120 &Tools.&Spelling.Spell\ Check\ &Off :set nospell<CR> 412 an 40.335.120 &Tools.&Spelling.Spell\ Check\ &Off :set nospell<CR>
413 an 40.335.130 &Tools.&Spelling.To\ &Next\ error<Tab>]s ]s 413 an 40.335.130 &Tools.&Spelling.To\ &Next\ Error<Tab>]s ]s
414 an 40.335.130 &Tools.&Spelling.To\ &Previous\ error<Tab>[s [s 414 an 40.335.130 &Tools.&Spelling.To\ &Previous\ Error<Tab>[s [s
415 an 40.335.140 &Tools.&Spelling.Suggest\ &Corrections<Tab>z= z= 415 an 40.335.140 &Tools.&Spelling.Suggest\ &Corrections<Tab>z= z=
416 an 40.335.150 &Tools.&Spelling.&Repeat\ correction<Tab>:spellrepall :spellrepall<CR> 416 an 40.335.150 &Tools.&Spelling.&Repeat\ Correction<Tab>:spellrepall :spellrepall<CR>
417 an 40.335.200 &Tools.&Spelling.-SEP1- <Nop> 417 an 40.335.200 &Tools.&Spelling.-SEP1- <Nop>
418 an 40.335.210 &Tools.&Spelling.Set\ language\ to\ "en" :set spl=en spell<CR> 418 an 40.335.210 &Tools.&Spelling.Set\ Language\ to\ "en" :set spl=en spell<CR>
419 an 40.335.220 &Tools.&Spelling.Set\ language\ to\ "en_au" :set spl=en_au spell<CR> 419 an 40.335.220 &Tools.&Spelling.Set\ Language\ to\ "en_au" :set spl=en_au spell<CR>
420 an 40.335.230 &Tools.&Spelling.Set\ language\ to\ "en_ca" :set spl=en_ca spell<CR> 420 an 40.335.230 &Tools.&Spelling.Set\ Language\ to\ "en_ca" :set spl=en_ca spell<CR>
421 an 40.335.240 &Tools.&Spelling.Set\ language\ to\ "en_gb" :set spl=en_gb spell<CR> 421 an 40.335.240 &Tools.&Spelling.Set\ Language\ to\ "en_gb" :set spl=en_gb spell<CR>
422 an 40.335.250 &Tools.&Spelling.Set\ language\ to\ "en_nz" :set spl=en_nz spell<CR> 422 an 40.335.250 &Tools.&Spelling.Set\ Language\ to\ "en_nz" :set spl=en_nz spell<CR>
423 an 40.335.260 &Tools.&Spelling.Set\ language\ to\ "en_us" :set spl=en_us spell<CR> 423 an 40.335.260 &Tools.&Spelling.Set\ Language\ to\ "en_us" :set spl=en_us spell<CR>
424 an <silent> 40.335.270 &Tools.&Spelling.&Find\ More\ Languages :call <SID>SpellLang()<CR> 424 an <silent> 40.335.270 &Tools.&Spelling.&Find\ More\ Languages :call <SID>SpellLang()<CR>
425 425
426 let s:undo_spellang = ['aun &Tools.&Spelling.&Find\ More\ Languages'] 426 let s:undo_spellang = ['aun &Tools.&Spelling.&Find\ More\ Languages']
427 func! s:SpellLang() 427 func! s:SpellLang()
428 for cmd in s:undo_spellang 428 for cmd in s:undo_spellang
435 else 435 else
436 let enc = &enc 436 let enc = &enc
437 endif 437 endif
438 438
439 if !exists("g:menutrans_set_lang_to") 439 if !exists("g:menutrans_set_lang_to")
440 let g:menutrans_set_lang_to = 'Set language to' 440 let g:menutrans_set_lang_to = 'Set Language to'
441 endif 441 endif
442 442
443 let found = 0 443 let found = 0
444 let s = globpath(&rtp, "spell/*." . enc . ".spl") 444 let s = globpath(&rtp, "spell/*." . enc . ".spl")
445 if s != "" 445 if s != ""
472 endif 472 endif
473 473
474 " Tools.Fold Menu 474 " Tools.Fold Menu
475 if has("folding") 475 if has("folding")
476 " open close folds 476 " open close folds
477 an 40.340.110 &Tools.&Folding.&Enable/Disable\ folds<Tab>zi zi 477 an 40.340.110 &Tools.&Folding.&Enable/Disable\ Folds<Tab>zi zi
478 an 40.340.120 &Tools.&Folding.&View\ Cursor\ Line<Tab>zv zv 478 an 40.340.120 &Tools.&Folding.&View\ Cursor\ Line<Tab>zv zv
479 an 40.340.120 &Tools.&Folding.Vie&w\ Cursor\ Line\ only<Tab>zMzx zMzx 479 an 40.340.120 &Tools.&Folding.Vie&w\ Cursor\ Line\ Only<Tab>zMzx zMzx
480 inoremenu 40.340.120 &Tools.&Folding.Vie&w\ Cursor\ Line\ only<Tab>zMzx <C-O>zM<C-O>zx 480 inoremenu 40.340.120 &Tools.&Folding.Vie&w\ Cursor\ Line\ Only<Tab>zMzx <C-O>zM<C-O>zx
481 an 40.340.130 &Tools.&Folding.C&lose\ more\ folds<Tab>zm zm 481 an 40.340.130 &Tools.&Folding.C&lose\ More\ Folds<Tab>zm zm
482 an 40.340.140 &Tools.&Folding.&Close\ all\ folds<Tab>zM zM 482 an 40.340.140 &Tools.&Folding.&Close\ All\ Folds<Tab>zM zM
483 an 40.340.150 &Tools.&Folding.O&pen\ more\ folds<Tab>zr zr 483 an 40.340.150 &Tools.&Folding.O&pen\ More\ Folds<Tab>zr zr
484 an 40.340.160 &Tools.&Folding.&Open\ All\ Folds<Tab>zR zR 484 an 40.340.160 &Tools.&Folding.&Open\ All\ Folds<Tab>zR zR
485 " fold method 485 " fold method
486 an 40.340.200 &Tools.&Folding.-SEP1- <Nop> 486 an 40.340.200 &Tools.&Folding.-SEP1- <Nop>
487 an 40.340.210 &Tools.&Folding.Fold\ Met&hod.M&anual :set fdm=manual<CR> 487 an 40.340.210 &Tools.&Folding.Fold\ Met&hod.M&anual :set fdm=manual<CR>
488 an 40.340.210 &Tools.&Folding.Fold\ Met&hod.I&ndent :set fdm=indent<CR> 488 an 40.340.210 &Tools.&Folding.Fold\ Met&hod.I&ndent :set fdm=indent<CR>
494 vnoremenu 40.340.220 &Tools.&Folding.Create\ &Fold<Tab>zf zf 494 vnoremenu 40.340.220 &Tools.&Folding.Create\ &Fold<Tab>zf zf
495 an 40.340.230 &Tools.&Folding.&Delete\ Fold<Tab>zd zd 495 an 40.340.230 &Tools.&Folding.&Delete\ Fold<Tab>zd zd
496 an 40.340.240 &Tools.&Folding.Delete\ &All\ Folds<Tab>zD zD 496 an 40.340.240 &Tools.&Folding.Delete\ &All\ Folds<Tab>zD zD
497 " moving around in folds 497 " moving around in folds
498 an 40.340.300 &Tools.&Folding.-SEP2- <Nop> 498 an 40.340.300 &Tools.&Folding.-SEP2- <Nop>
499 an 40.340.310.10 &Tools.&Folding.Fold\ col&umn\ width.\ &0\ :set fdc=0<CR> 499 an 40.340.310.10 &Tools.&Folding.Fold\ Col&umn\ Width.\ &0\ :set fdc=0<CR>
500 an 40.340.310.20 &Tools.&Folding.Fold\ col&umn\ width.\ &2\ :set fdc=2<CR> 500 an 40.340.310.20 &Tools.&Folding.Fold\ Col&umn\ Width.\ &2\ :set fdc=2<CR>
501 an 40.340.310.30 &Tools.&Folding.Fold\ col&umn\ width.\ &3\ :set fdc=3<CR> 501 an 40.340.310.30 &Tools.&Folding.Fold\ Col&umn\ Width.\ &3\ :set fdc=3<CR>
502 an 40.340.310.40 &Tools.&Folding.Fold\ col&umn\ width.\ &4\ :set fdc=4<CR> 502 an 40.340.310.40 &Tools.&Folding.Fold\ Col&umn\ Width.\ &4\ :set fdc=4<CR>
503 an 40.340.310.50 &Tools.&Folding.Fold\ col&umn\ width.\ &5\ :set fdc=5<CR> 503 an 40.340.310.50 &Tools.&Folding.Fold\ Col&umn\ Width.\ &5\ :set fdc=5<CR>
504 an 40.340.310.60 &Tools.&Folding.Fold\ col&umn\ width.\ &6\ :set fdc=6<CR> 504 an 40.340.310.60 &Tools.&Folding.Fold\ Col&umn\ Width.\ &6\ :set fdc=6<CR>
505 an 40.340.310.70 &Tools.&Folding.Fold\ col&umn\ width.\ &7\ :set fdc=7<CR> 505 an 40.340.310.70 &Tools.&Folding.Fold\ Col&umn\ Width.\ &7\ :set fdc=7<CR>
506 an 40.340.310.80 &Tools.&Folding.Fold\ col&umn\ width.\ &8\ :set fdc=8<CR> 506 an 40.340.310.80 &Tools.&Folding.Fold\ Col&umn\ Width.\ &8\ :set fdc=8<CR>
507 endif " has folding 507 endif " has folding
508 508
509 if has("diff") 509 if has("diff")
510 an 40.350.100 &Tools.&Diff.&Update :diffupdate<CR> 510 an 40.350.100 &Tools.&Diff.&Update :diffupdate<CR>
511 an 40.350.110 &Tools.&Diff.&Get\ Block :diffget<CR> 511 an 40.350.110 &Tools.&Diff.&Get\ Block :diffget<CR>
529 an 40.430.70 &Tools.Error\ &Window.&Close<Tab>:cclose :cclose<CR> 529 an 40.430.70 &Tools.Error\ &Window.&Close<Tab>:cclose :cclose<CR>
530 530
531 an 40.520 &Tools.-SEP3- <Nop> 531 an 40.520 &Tools.-SEP3- <Nop>
532 an <silent> 40.530 &Tools.&Convert\ to\ HEX<Tab>:%!xxd 532 an <silent> 40.530 &Tools.&Convert\ to\ HEX<Tab>:%!xxd
533 \ :call <SID>XxdConv()<CR> 533 \ :call <SID>XxdConv()<CR>
534 an <silent> 40.540 &Tools.Conve&rt\ back<Tab>:%!xxd\ -r 534 an <silent> 40.540 &Tools.Conve&rt\ Back<Tab>:%!xxd\ -r
535 \ :call <SID>XxdBack()<CR> 535 \ :call <SID>XxdBack()<CR>
536 536
537 " Use a function to do the conversion, so that it also works with 'insertmode' 537 " Use a function to do the conversion, so that it also works with 'insertmode'
538 " set. 538 " set.
539 func! s:XxdConv() 539 func! s:XxdConv()
586 let s:name = strpart(s:n, 0, s:i) 586 let s:name = strpart(s:n, 0, s:i)
587 let s:n = strpart(s:n, s:i + 1, 19999) 587 let s:n = strpart(s:n, s:i + 1, 19999)
588 endif 588 endif
589 " Ignore case for VMS and windows 589 " Ignore case for VMS and windows
590 let s:name = substitute(s:name, '\c.*[/\\:\]]\([^/\\:]*\)\.vim', '\1', '') 590 let s:name = substitute(s:name, '\c.*[/\\:\]]\([^/\\:]*\)\.vim', '\1', '')
591 exe "an 30.440." . s:idx . ' &Tools.Se&T\ Compiler.' . s:name . " :compiler " . s:name . "<CR>" 591 exe "an 30.440." . s:idx . ' &Tools.Se&t\ Compiler.' . s:name . " :compiler " . s:name . "<CR>"
592 unlet s:name 592 unlet s:name
593 unlet s:i 593 unlet s:i
594 let s:idx = s:idx + 10 594 let s:idx = s:idx + 10
595 endwhile 595 endwhile
596 unlet s:n 596 unlet s:n
827 an 70.340 &Window.&Close<Tab>^Wc :confirm close<CR> 827 an 70.340 &Window.&Close<Tab>^Wc :confirm close<CR>
828 an 70.345 &Window.Close\ &Other(s)<Tab>^Wo :confirm only<CR> 828 an 70.345 &Window.Close\ &Other(s)<Tab>^Wo :confirm only<CR>
829 an 70.350 &Window.-SEP2- <Nop> 829 an 70.350 &Window.-SEP2- <Nop>
830 an 70.355 &Window.Move\ &To.&Top<Tab>^WK <C-W>K 830 an 70.355 &Window.Move\ &To.&Top<Tab>^WK <C-W>K
831 an 70.355 &Window.Move\ &To.&Bottom<Tab>^WJ <C-W>J 831 an 70.355 &Window.Move\ &To.&Bottom<Tab>^WJ <C-W>J
832 an 70.355 &Window.Move\ &To.&Left\ side<Tab>^WH <C-W>H 832 an 70.355 &Window.Move\ &To.&Left\ Side<Tab>^WH <C-W>H
833 an 70.355 &Window.Move\ &To.&Right\ side<Tab>^WL <C-W>L 833 an 70.355 &Window.Move\ &To.&Right\ Side<Tab>^WL <C-W>L
834 an 70.360 &Window.Rotate\ &Up<Tab>^WR <C-W>R 834 an 70.360 &Window.Rotate\ &Up<Tab>^WR <C-W>R
835 an 70.362 &Window.Rotate\ &Down<Tab>^Wr <C-W>r 835 an 70.362 &Window.Rotate\ &Down<Tab>^Wr <C-W>r
836 an 70.365 &Window.-SEP3- <Nop> 836 an 70.365 &Window.-SEP3- <Nop>
837 an 70.370 &Window.&Equal\ Size<Tab>^W= <C-W>= 837 an 70.370 &Window.&Equal\ Size<Tab>^W= <C-W>=
838 an 70.380 &Window.&Max\ Height<Tab>^W_ <C-W>_ 838 an 70.380 &Window.&Max\ Height<Tab>^W_ <C-W>_
911 let s:suglist = [substitute(w, '.*', '\u&', '')] 911 let s:suglist = [substitute(w, '.*', '\u&', '')]
912 else 912 else
913 let s:suglist = spellsuggest(w, 10) 913 let s:suglist = spellsuggest(w, 10)
914 endif 914 endif
915 if len(s:suglist) > 0 915 if len(s:suglist) > 0
916 let s:changeitem = 'change\ "' . escape(w, ' .'). '"\ to' 916 let s:changeitem = 'Change\ "' . escape(w, ' .'). '"\ to'
917 let s:fromword = w 917 let s:fromword = w
918 let pri = 1 918 let pri = 1
919 " set 'cpo' to include the <CR> 919 " set 'cpo' to include the <CR>
920 let cpo_save = &cpo 920 let cpo_save = &cpo
921 set cpo&vim 921 set cpo&vim
923 exe 'anoremenu 1.5.' . pri . ' PopUp.' . s:changeitem . '.' . escape(sug, ' .') 923 exe 'anoremenu 1.5.' . pri . ' PopUp.' . s:changeitem . '.' . escape(sug, ' .')
924 \ . ' :call <SID>SpellReplace(' . pri . ')<CR>' 924 \ . ' :call <SID>SpellReplace(' . pri . ')<CR>'
925 let pri += 1 925 let pri += 1
926 endfor 926 endfor
927 927
928 let s:additem = 'add\ "' . escape(w, ' .') . '"\ to\ word\ list' 928 let s:additem = 'Add\ "' . escape(w, ' .') . '"\ to\ Word\ List'
929 exe 'anoremenu 1.6 PopUp.' . s:additem . ' :spellgood ' . w . '<CR>' 929 exe 'anoremenu 1.6 PopUp.' . s:additem . ' :spellgood ' . w . '<CR>'
930 930
931 let s:ignoreitem = 'ignore\ "' . escape(w, ' .') . '"' 931 let s:ignoreitem = 'Ignore\ "' . escape(w, ' .') . '"'
932 exe 'anoremenu 1.7 PopUp.' . s:ignoreitem . ' :spellgood! ' . w . '<CR>' 932 exe 'anoremenu 1.7 PopUp.' . s:ignoreitem . ' :spellgood! ' . w . '<CR>'
933 933
934 anoremenu 1.8 PopUp.-SpellSep- : 934 anoremenu 1.8 PopUp.-SpellSep- :
935 let &cpo = cpo_save 935 let &cpo = cpo_save
936 endif 936 endif
1065 " Define these items always, so that syntax can be switched on when it wasn't. 1065 " Define these items always, so that syntax can be switched on when it wasn't.
1066 " But skip them when the Syntax menu was disabled by the user. 1066 " But skip them when the Syntax menu was disabled by the user.
1067 if !exists("did_install_syntax_menu") 1067 if !exists("did_install_syntax_menu")
1068 an 50.212 &Syntax.&Manual :syn manual<CR> 1068 an 50.212 &Syntax.&Manual :syn manual<CR>
1069 an 50.214 &Syntax.A&utomatic :syn on<CR> 1069 an 50.214 &Syntax.A&utomatic :syn on<CR>
1070 an <silent> 50.216 &Syntax.on/off\ for\ &This\ file :call <SID>SynOnOff()<CR> 1070 an <silent> 50.216 &Syntax.On/Off\ for\ &This\ File :call <SID>SynOnOff()<CR>
1071 if !exists("*s:SynOnOff") 1071 if !exists("*s:SynOnOff")
1072 fun s:SynOnOff() 1072 fun s:SynOnOff()
1073 if has("syntax_items") 1073 if has("syntax_items")
1074 syn clear 1074 syn clear
1075 else 1075 else
1093 " Skip setting up the individual syntax selection menus unless 1093 " Skip setting up the individual syntax selection menus unless
1094 " do_syntax_sel_menu is defined (it takes quite a bit of time). 1094 " do_syntax_sel_menu is defined (it takes quite a bit of time).
1095 if exists("do_syntax_sel_menu") 1095 if exists("do_syntax_sel_menu")
1096 runtime! synmenu.vim 1096 runtime! synmenu.vim
1097 else 1097 else
1098 an 50.10 &Syntax.&Show\ filetypes\ in\ menu :let do_syntax_sel_menu = 1<Bar>runtime! synmenu.vim<Bar>aunmenu &Syntax.&Show\ filetypes\ in\ menu<CR> 1098 an 50.10 &Syntax.&Show\ File\ Types\ in\ Menu :let do_syntax_sel_menu = 1<Bar>runtime! synmenu.vim<Bar>aunmenu &Syntax.&Show\ File\ Types\ in\ Menu<CR>
1099 an 50.195 &Syntax.-SEP1- <Nop> 1099 an 50.195 &Syntax.-SEP1- <Nop>
1100 endif 1100 endif
1101 1101
1102 an 50.210 &Syntax.&Off :syn off<CR> 1102 an 50.210 &Syntax.&Off :syn off<CR>
1103 an 50.700 &Syntax.-SEP3- <Nop> 1103 an 50.700 &Syntax.-SEP3- <Nop>
1104 an 50.710 &Syntax.Co&lor\ test :sp $VIMRUNTIME/syntax/colortest.vim<Bar>so %<CR> 1104 an 50.710 &Syntax.Co&lor\ Test :sp $VIMRUNTIME/syntax/colortest.vim<Bar>so %<CR>
1105 an 50.720 &Syntax.&Highlight\ test :runtime syntax/hitest.vim<CR> 1105 an 50.720 &Syntax.&Highlight\ Test :runtime syntax/hitest.vim<CR>
1106 an 50.730 &Syntax.&Convert\ to\ HTML :runtime syntax/2html.vim<CR> 1106 an 50.730 &Syntax.&Convert\ to\ HTML :runtime syntax/2html.vim<CR>
1107 1107
1108 endif " !exists("did_install_syntax_menu") 1108 endif " !exists("did_install_syntax_menu")
1109 1109
1110 " Restore the previous value of 'cpoptions'. 1110 " Restore the previous value of 'cpoptions'.