Mercurial > vim
annotate runtime/evim.vim @ 33902:8c4c6369239b
runtime(doc): link cmdline completion to to |wildcards| and fix typos (#13636)
Commit: https://github.com/vim/vim/commit/61e984e212ed19774e088868c30c2d03c4e5a0cf
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sat Dec 9 15:18:33 2023 +0800
runtime(doc): link cmdline completion to to |wildcards| and fix typos (https://github.com/vim/vim/issues/13636)
The docs for cmdline completion doesn't mention that [abc] is considered
a wildcard, and |wildcards| contains more detailed information, so just
link to it.
Also fix some typos in other help files.
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 10 Dec 2023 15:16:36 +0100 |
parents | 4027cefc2aab |
children |
rev | line source |
---|---|
7 | 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 | 5 |
6 " Don't use Vi-compatible mode. | |
7 set nocompatible | |
8 | |
9 " Use the mswin.vim script for most mappings | |
10 source <sfile>:p:h/mswin.vim | |
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 | 15 " Vim is in Insert mode by default |
16 set insertmode | |
17 | |
18 " Make a buffer hidden when editing another one | |
19 set hidden | |
20 | |
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 | 24 |
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 | 31 |
32 | |
33 set backspace=2 " allow backspacing over everything in insert mode | |
34 set autoindent " always set autoindenting on | |
35 if has("vms") | |
36 set nobackup " do not keep a backup file, use versions instead | |
37 else | |
38 set backup " keep a backup file | |
39 endif | |
40 set history=50 " keep 50 lines of command line history | |
41 set ruler " show the cursor position all the time | |
42 set incsearch " do incremental searching | |
43 set mouse=a " always use the mouse | |
44 | |
45 " Don't use Ex mode, use Q for formatting | |
46 map Q gq | |
47 | |
48 " Switch syntax highlighting on, when the terminal has colors | |
49 " Highlight the last used search pattern on the next search command. | |
50 if &t_Co > 2 || has("gui_running") | |
51 syntax on | |
52 set hlsearch | |
53 nohlsearch | |
54 endif | |
55 | |
15729 | 56 " Enable file type detection. |
57 " Use the default filetype settings, so that mail gets 'tw' set to 72, | |
58 " 'cindent' is on in C files, etc. | |
59 " Also load indent files, to automatically do language-dependent indenting. | |
60 filetype plugin indent on | |
7 | 61 |
15729 | 62 " For all text files set 'textwidth' to 78 characters. |
63 au FileType text setlocal tw=78 | |
7 | 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 | 69 " The ! means the package won't be loaded right away but when plugins are |
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 | 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 | 75 " vim: set sw=2 : |