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