Mercurial > vim
annotate runtime/evim.vim @ 30657:ac908e454519 v9.0.0663
patch 9.0.0663: tests check for +cmdwin feature which is always present
Commit: https://github.com/vim/vim/commit/d1955987147a299d7bca30cd1b5792535ff0745c
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed Oct 5 11:24:46 2022 +0100
patch 9.0.0663: tests check for +cmdwin feature which is always present
Problem: Tests check for +cmdwin feature which is always present.
Solution: Remove the checks. (closes https://github.com/vim/vim/issues/11287)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 05 Oct 2022 12:30:04 +0200 |
parents | cd68a630f0d0 |
children | 4027cefc2aab |
rev | line source |
---|---|
7 | 1 " Vim script for Evim key bindings |
2 " Maintainer: Bram Moolenaar <Bram@vim.org> | |
28843
cd68a630f0d0
Update runtime files and translations
Bram Moolenaar <Bram@vim.org>
parents:
15729
diff
changeset
|
3 " Last Change: 2022 May 10 |
7 | 4 |
5 " Don't use Vi-compatible mode. | |
6 set nocompatible | |
7 | |
8 " Use the mswin.vim script for most mappings | |
9 source <sfile>:p:h/mswin.vim | |
10 | |
28843
cd68a630f0d0
Update runtime files and translations
Bram Moolenaar <Bram@vim.org>
parents:
15729
diff
changeset
|
11 " 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
|
12 inoremap <C-Q> <C-O>:confirm qall<CR> |
cd68a630f0d0
Update runtime files and translations
Bram Moolenaar <Bram@vim.org>
parents:
15729
diff
changeset
|
13 |
7 | 14 " Vim is in Insert mode by default |
15 set insertmode | |
16 | |
17 " Make a buffer hidden when editing another one | |
18 set hidden | |
19 | |
20 " 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
|
21 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
|
22 inoremap <silent> <Up> <C-R>=pumvisible() ? "\<lt>Up>" : "\<lt>C-O>gk"<CR> |
7 | 23 |
24 " 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
|
25 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
|
26 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
|
27 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
|
28 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
|
29 cnoremap <silent> <C-F> <C-C>:promptfind<CR> |
7 | 30 |
31 | |
32 set backspace=2 " allow backspacing over everything in insert mode | |
33 set autoindent " always set autoindenting on | |
34 if has("vms") | |
35 set nobackup " do not keep a backup file, use versions instead | |
36 else | |
37 set backup " keep a backup file | |
38 endif | |
39 set history=50 " keep 50 lines of command line history | |
40 set ruler " show the cursor position all the time | |
41 set incsearch " do incremental searching | |
42 set mouse=a " always use the mouse | |
43 | |
44 " Don't use Ex mode, use Q for formatting | |
45 map Q gq | |
46 | |
47 " Switch syntax highlighting on, when the terminal has colors | |
48 " Highlight the last used search pattern on the next search command. | |
49 if &t_Co > 2 || has("gui_running") | |
50 syntax on | |
51 set hlsearch | |
52 nohlsearch | |
53 endif | |
54 | |
15729 | 55 " Enable file type detection. |
56 " Use the default filetype settings, so that mail gets 'tw' set to 72, | |
57 " 'cindent' is on in C files, etc. | |
58 " Also load indent files, to automatically do language-dependent indenting. | |
59 filetype plugin indent on | |
7 | 60 |
15729 | 61 " For all text files set 'textwidth' to 78 characters. |
62 au FileType text setlocal tw=78 | |
7 | 63 |
9669
284b4eb307fc
commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents:
2220
diff
changeset
|
64 " Add optional packages. |
284b4eb307fc
commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents:
2220
diff
changeset
|
65 " |
284b4eb307fc
commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents:
2220
diff
changeset
|
66 " 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
|
67 " compatible. |
12559 | 68 " The ! means the package won't be loaded right away but when plugins are |
69 " loaded during initialization. | |
9669
284b4eb307fc
commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents:
2220
diff
changeset
|
70 if has('syntax') && has('eval') |
12559 | 71 packadd! matchit |
9669
284b4eb307fc
commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents:
2220
diff
changeset
|
72 endif |
284b4eb307fc
commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents:
2220
diff
changeset
|
73 |
7 | 74 " vim: set sw=2 : |