Mercurial > vim
annotate runtime/gvimrc_example.vim @ 25889:c83ebae45881 v8.2.3478
patch 8.2.3478: still crash with error in :catch and also in :finally
Commit: https://github.com/vim/vim/commit/f67d3fb7363ebc9454f9bb582de3978609a4fd6b
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Oct 5 11:22:27 2021 +0100
patch 8.2.3478: still crash with error in :catch and also in :finally
Problem: Still crash with error in :catch and also in :finally.
Solution: Only call finish_exception() once. (closes https://github.com/vim/vim/issues/8954)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 05 Oct 2021 12:30:04 +0200 |
parents | 22f0dda71638 |
children | 4027cefc2aab |
rev | line source |
---|---|
7 | 1 " An example for a gvimrc file. |
8853
48b4c1c284fb
commit https://github.com/vim/vim/commit/54f1b7abf8c48b1dd997202258d1d0673ed4bd29
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
2 " The commands in this are executed when the GUI is started, after the vimrc |
48b4c1c284fb
commit https://github.com/vim/vim/commit/54f1b7abf8c48b1dd997202258d1d0673ed4bd29
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
3 " has been executed. |
7 | 4 " |
5 " Maintainer: Bram Moolenaar <Bram@vim.org> | |
8853
48b4c1c284fb
commit https://github.com/vim/vim/commit/54f1b7abf8c48b1dd997202258d1d0673ed4bd29
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
6 " Last change: 2016 Apr 05 |
7 | 7 " |
8 " To use it, copy it to | |
19526
22f0dda71638
patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
18912
diff
changeset
|
9 " for Unix: ~/.gvimrc |
22f0dda71638
patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
18912
diff
changeset
|
10 " for Amiga: s:.gvimrc |
22f0dda71638
patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
18912
diff
changeset
|
11 " for MS-Windows: $VIM\_gvimrc |
22f0dda71638
patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
18912
diff
changeset
|
12 " for Haiku: ~/config/settings/vim/gvimrc |
22f0dda71638
patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
18912
diff
changeset
|
13 " for OpenVMS: sys$login:.gvimrc |
7 | 14 |
15 " Make external commands work through a pipe instead of a pseudo-tty | |
16 "set noguipty | |
17 | |
18 " set the X11 font to use | |
19 " set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1 | |
20 | |
21 set ch=2 " Make command line two lines high | |
22 | |
23 set mousehide " Hide the mouse when typing text | |
24 | |
25 " Make shift-insert work like in Xterm | |
26 map <S-Insert> <MiddleMouse> | |
27 map! <S-Insert> <MiddleMouse> | |
28 | |
29 " Only do this for Vim version 5.0 and later. | |
30 if version >= 500 | |
31 | |
32 " Switch on syntax highlighting if it wasn't on yet. | |
33 if !exists("syntax_on") | |
34 syntax on | |
35 endif | |
36 | |
37 " For Win32 version, have "K" lookup the keyword in a help file | |
38 "if has("win32") | |
39 " let winhelpfile='windows.hlp' | |
40 " map K :execute "!start winhlp32 -k <cword> " . winhelpfile <CR> | |
41 "endif | |
42 | |
43 " Set nice colors | |
44 " background for normal text is light grey | |
45 " Text below the last line is darker grey | |
46 " Cursor is green, Cyan when ":lmap" mappings are active | |
47 " Constants are not underlined but have a slightly lighter background | |
48 highlight Normal guibg=grey90 | |
49 highlight Cursor guibg=Green guifg=NONE | |
50 highlight lCursor guibg=Cyan guifg=NONE | |
51 highlight NonText guibg=grey80 | |
52 highlight Constant gui=NONE guibg=grey95 | |
53 highlight Special gui=NONE guibg=grey95 | |
54 | |
55 endif |