Mercurial > vim
annotate runtime/evim.vim @ 34359:0447bf3a88a5 v9.1.0110
patch 9.1.0110: filetype: add 'Config.in' filetype detection
Commit: https://github.com/vim/vim/commit/5f20f050efed3431beaf85739f0113e9ef0abd8e
Author: Brandon Maier <brandon.maier@collins.com>
Date: Wed Feb 14 22:30:06 2024 +0100
patch 9.1.0110: filetype: add 'Config.in' filetype detection
The 'Config.in' file type is for Buildroot configuration files.
Buildroot Config.in files use the same Kconfig backend as the Linux
kernel's Kconfig files.
Buildroot also has other filename variants that follow "Config.in.*",
they are used to distinguish multiple Config.in files in the same
directory.
See https://buildroot.org/downloads/manual/manual.html#_literal_config_in_literal_file
closes: #14038
Signed-off-by: Brandon Maier <brandon.maier@collins.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 14 Feb 2024 22:45:02 +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 : |