Mercurial > vim
comparison runtime/menu.vim @ 18186:03b854983b14
Update runtime files.
Commit: https://github.com/vim/vim/commit/5be4ceecea5520265066eac972460ebb1cdf05e7
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 27 19:34:08 2019 +0200
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 27 Sep 2019 19:45:06 +0200 |
parents | 834b7854aa3c |
children | e9a47bcf7b94 |
comparison
equal
deleted
inserted
replaced
18185:75f204e14e28 | 18186:03b854983b14 |
---|---|
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: 2019 Jan 27 | 5 " Last Change: 2019 Sep 26 |
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 |
27 endif | 27 endif |
28 else | 28 else |
29 let s:lang = v:lang | 29 let s:lang = v:lang |
30 endif | 30 endif |
31 " A language name must be at least two characters, don't accept "C" | 31 " A language name must be at least two characters, don't accept "C" |
32 if strlen(s:lang) > 1 | 32 " Also skip "en_US" to avoid picking up "en_gb" translations. |
33 if strlen(s:lang) > 1 && s:lang !~? '^en_us' | |
33 " When the language does not include the charset add 'encoding' | 34 " When the language does not include the charset add 'encoding' |
34 if s:lang =~ '^\a\a$\|^\a\a_\a\a$' | 35 if s:lang =~ '^\a\a$\|^\a\a_\a\a$' |
35 let s:lang = s:lang . '.' . &enc | 36 let s:lang = s:lang . '.' . &enc |
36 endif | 37 endif |
37 | 38 |