Mercurial > vim
annotate runtime/gvimrc_example.vim @ 17797:ec1717981acf v8.1.1895
patch 8.1.1895: using NULL pointer when out of memory
commit https://github.com/vim/vim/commit/6f10c70b59fa4e56aa479345fb0caeaac7429bfb
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 20 22:58:37 2019 +0200
patch 8.1.1895: using NULL pointer when out of memory
Problem: Using NULL pointer when out of memory.
Solution: Bail out or skip the code using the pointer. (Zu-Ming Jiang,
closes #4805, closes #4843, closes #4939, closes #4844)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 20 Aug 2019 23:00:04 +0200 |
parents | 48b4c1c284fb |
children | ccd16426a1f9 |
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 | |
9 " for Unix and OS/2: ~/.gvimrc | |
10 " for Amiga: s:.gvimrc | |
11 " for MS-DOS and Win32: $VIM\_gvimrc | |
12 " for OpenVMS: sys$login:.gvimrc | |
13 | |
14 " Make external commands work through a pipe instead of a pseudo-tty | |
15 "set noguipty | |
16 | |
17 " set the X11 font to use | |
18 " set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1 | |
19 | |
20 set ch=2 " Make command line two lines high | |
21 | |
22 set mousehide " Hide the mouse when typing text | |
23 | |
24 " Make shift-insert work like in Xterm | |
25 map <S-Insert> <MiddleMouse> | |
26 map! <S-Insert> <MiddleMouse> | |
27 | |
28 " Only do this for Vim version 5.0 and later. | |
29 if version >= 500 | |
30 | |
31 " Switch on syntax highlighting if it wasn't on yet. | |
32 if !exists("syntax_on") | |
33 syntax on | |
34 endif | |
35 | |
36 " For Win32 version, have "K" lookup the keyword in a help file | |
37 "if has("win32") | |
38 " let winhelpfile='windows.hlp' | |
39 " map K :execute "!start winhlp32 -k <cword> " . winhelpfile <CR> | |
40 "endif | |
41 | |
42 " Set nice colors | |
43 " background for normal text is light grey | |
44 " Text below the last line is darker grey | |
45 " Cursor is green, Cyan when ":lmap" mappings are active | |
46 " Constants are not underlined but have a slightly lighter background | |
47 highlight Normal guibg=grey90 | |
48 highlight Cursor guibg=Green guifg=NONE | |
49 highlight lCursor guibg=Cyan guifg=NONE | |
50 highlight NonText guibg=grey80 | |
51 highlight Constant gui=NONE guibg=grey95 | |
52 highlight Special gui=NONE guibg=grey95 | |
53 | |
54 endif |