annotate runtime/evim.vim @ 34590:4cad34137ea0

runtime(vim): Update base-syntax, disallow '.' at start of menu item names (#14232) Commit: https://github.com/vim/vim/commit/ec21bafc135a1e78d40e4fc9118e022bbab958e8 Author: dkearns <dougkearns@gmail.com> Date: Wed Mar 20 04:04:42 2024 +1100 runtime(vim): Update base-syntax, disallow '.' at start of menu item names (https://github.com/vim/vim/issues/14232) Disallow '.' at the start of a menu item name. This is the menu path separator character and should be escaped with a '\' in this case. Partially fixes #14230. "popup" is still incorrectly matched as the Ex command. Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Tue, 19 Mar 2024 18:15:05 +0100
parents 4027cefc2aab
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim script for Evim key bindings
32770
4027cefc2aab Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents: 28843
diff changeset
2 " Maintainer: The Vim Project <https://github.com/vim/vim>
4027cefc2aab Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents: 28843
diff changeset
3 " Last Change: 2023 Aug 10
4027cefc2aab Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents: 28843
diff changeset
4 " Former Maintainer: Bram Moolenaar <Bram@vim.org>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Don't use Vi-compatible mode.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 set nocompatible
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " Use the mswin.vim script for most mappings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 source <sfile>:p:h/mswin.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
28843
cd68a630f0d0 Update runtime files and translations
Bram Moolenaar <Bram@vim.org>
parents: 15729
diff changeset
12 " Allow for using CTRL-Q in Insert mode to quit Vim.
cd68a630f0d0 Update runtime files and translations
Bram Moolenaar <Bram@vim.org>
parents: 15729
diff changeset
13 inoremap <C-Q> <C-O>:confirm qall<CR>
cd68a630f0d0 Update runtime files and translations
Bram Moolenaar <Bram@vim.org>
parents: 15729
diff changeset
14
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " Vim is in Insert mode by default
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 set insertmode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Make a buffer hidden when editing another one
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 set hidden
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " Make cursor keys ignore wrapping
2220
b1c70c500de4 Found a way to make the MS-Windows installer wait for the uninstaller to
Bram Moolenaar <bram@vim.org>
parents: 818
diff changeset
22 inoremap <silent> <Down> <C-R>=pumvisible() ? "\<lt>Down>" : "\<lt>C-O>gj"<CR>
b1c70c500de4 Found a way to make the MS-Windows installer wait for the uninstaller to
Bram Moolenaar <bram@vim.org>
parents: 818
diff changeset
23 inoremap <silent> <Up> <C-R>=pumvisible() ? "\<lt>Up>" : "\<lt>C-O>gk"<CR>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " CTRL-F does Find dialog instead of page forward
2220
b1c70c500de4 Found a way to make the MS-Windows installer wait for the uninstaller to
Bram Moolenaar <bram@vim.org>
parents: 818
diff changeset
26 noremap <silent> <C-F> :promptfind<CR>
b1c70c500de4 Found a way to make the MS-Windows installer wait for the uninstaller to
Bram Moolenaar <bram@vim.org>
parents: 818
diff changeset
27 vnoremap <silent> <C-F> y:promptfind <C-R>"<CR>
b1c70c500de4 Found a way to make the MS-Windows installer wait for the uninstaller to
Bram Moolenaar <bram@vim.org>
parents: 818
diff changeset
28 onoremap <silent> <C-F> <C-C>:promptfind<CR>
b1c70c500de4 Found a way to make the MS-Windows installer wait for the uninstaller to
Bram Moolenaar <bram@vim.org>
parents: 818
diff changeset
29 inoremap <silent> <C-F> <C-O>:promptfind<CR>
b1c70c500de4 Found a way to make the MS-Windows installer wait for the uninstaller to
Bram Moolenaar <bram@vim.org>
parents: 818
diff changeset
30 cnoremap <silent> <C-F> <C-C>:promptfind<CR>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 set backspace=2 " allow backspacing over everything in insert mode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 set autoindent " always set autoindenting on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 if has("vms")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 set nobackup " do not keep a backup file, use versions instead
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 set backup " keep a backup file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 set history=50 " keep 50 lines of command line history
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 set ruler " show the cursor position all the time
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 set incsearch " do incremental searching
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 set mouse=a " always use the mouse
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 " Don't use Ex mode, use Q for formatting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 map Q gq
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 " Switch syntax highlighting on, when the terminal has colors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 " Highlight the last used search pattern on the next search command.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 if &t_Co > 2 || has("gui_running")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syntax on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 set hlsearch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 nohlsearch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
15729
fe57e4f0eac1 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12559
diff changeset
56 " Enable file type detection.
fe57e4f0eac1 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12559
diff changeset
57 " Use the default filetype settings, so that mail gets 'tw' set to 72,
fe57e4f0eac1 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12559
diff changeset
58 " 'cindent' is on in C files, etc.
fe57e4f0eac1 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12559
diff changeset
59 " Also load indent files, to automatically do language-dependent indenting.
fe57e4f0eac1 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12559
diff changeset
60 filetype plugin indent on
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
15729
fe57e4f0eac1 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12559
diff changeset
62 " For all text files set 'textwidth' to 78 characters.
fe57e4f0eac1 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 12559
diff changeset
63 au FileType text setlocal tw=78
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
9669
284b4eb307fc commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents: 2220
diff changeset
65 " Add optional packages.
284b4eb307fc commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents: 2220
diff changeset
66 "
284b4eb307fc commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents: 2220
diff changeset
67 " The matchit plugin makes the % command work better, but it is not backwards
284b4eb307fc commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents: 2220
diff changeset
68 " compatible.
12559
34c8ec888122 Update runtime files
Christian Brabandt <cb@256bit.org>
parents: 9669
diff changeset
69 " The ! means the package won't be loaded right away but when plugins are
34c8ec888122 Update runtime files
Christian Brabandt <cb@256bit.org>
parents: 9669
diff changeset
70 " loaded during initialization.
9669
284b4eb307fc commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents: 2220
diff changeset
71 if has('syntax') && has('eval')
12559
34c8ec888122 Update runtime files
Christian Brabandt <cb@256bit.org>
parents: 9669
diff changeset
72 packadd! matchit
9669
284b4eb307fc commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents: 2220
diff changeset
73 endif
284b4eb307fc commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents: 2220
diff changeset
74
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 " vim: set sw=2 :