annotate runtime/gvimrc_example.vim @ 18758:aadf086144e0

Added tag v8.1.2368 for changeset c469e1930456e1834c82a4a20d01e763e5b41e2b
author Bram Moolenaar <Bram@vim.org>
date Sat, 30 Nov 2019 21:00:04 +0100
parents 48b4c1c284fb
children ccd16426a1f9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " To use it, copy it to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " for Unix and OS/2: ~/.gvimrc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " for Amiga: s:.gvimrc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " for MS-DOS and Win32: $VIM\_gvimrc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " for OpenVMS: sys$login:.gvimrc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " Make external commands work through a pipe instead of a pseudo-tty
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 "set noguipty
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " set the X11 font to use
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 set ch=2 " Make command line two lines high
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 set mousehide " Hide the mouse when typing text
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " Make shift-insert work like in Xterm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 map <S-Insert> <MiddleMouse>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 map! <S-Insert> <MiddleMouse>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " Only do this for Vim version 5.0 and later.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 if version >= 500
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " Switch on syntax highlighting if it wasn't on yet.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 if !exists("syntax_on")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syntax on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 " For Win32 version, have "K" lookup the keyword in a help file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 "if has("win32")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " let winhelpfile='windows.hlp'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 " map K :execute "!start winhlp32 -k <cword> " . winhelpfile <CR>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 "endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 " Set nice colors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 " background for normal text is light grey
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " Text below the last line is darker grey
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 " Cursor is green, Cyan when ":lmap" mappings are active
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 " Constants are not underlined but have a slightly lighter background
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 highlight Normal guibg=grey90
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 highlight Cursor guibg=Green guifg=NONE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 highlight lCursor guibg=Cyan guifg=NONE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 highlight NonText guibg=grey80
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 highlight Constant gui=NONE guibg=grey95
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 highlight Special gui=NONE guibg=grey95
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 endif