annotate runtime/gvimrc_example.vim @ 7958:91b85ecdfd4d

Added tag v7.4.1274 for changeset b74549818500459d8c9fa5280eeac41aad1138fc
author Christian Brabandt <cb@256bit.org>
date Sun, 07 Feb 2016 14:30:05 +0100
parents 3fc0f57ecb91
children 48b4c1c284fb
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.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " The commands in this are executed when the GUI is started.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Maintainer: Bram Moolenaar <Bram@vim.org>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last change: 2001 Sep 02
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " To use it, copy it to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " for Unix and OS/2: ~/.gvimrc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " for Amiga: s:.gvimrc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " for MS-DOS and Win32: $VIM\_gvimrc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " for OpenVMS: sys$login:.gvimrc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " Make external commands work through a pipe instead of a pseudo-tty
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 "set noguipty
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " set the X11 font to use
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " 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
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 set ch=2 " Make command line two lines high
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 set mousehide " Hide the mouse when typing text
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " Make shift-insert work like in Xterm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 map <S-Insert> <MiddleMouse>
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " Only do this for Vim version 5.0 and later.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 if version >= 500
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 " I like highlighting strings inside C comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 let c_comment_strings=1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 " Switch on syntax highlighting if it wasn't on yet.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 if !exists("syntax_on")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syntax on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " Switch on search pattern highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 set hlsearch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 " For Win32 version, have "K" lookup the keyword in a help file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 "if has("win32")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 " let winhelpfile='windows.hlp'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " map K :execute "!start winhlp32 -k <cword> " . winhelpfile <CR>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 "endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 " Set nice colors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 " background for normal text is light grey
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 " Text below the last line is darker grey
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 " Cursor is green, Cyan when ":lmap" mappings are active
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 " Constants are not underlined but have a slightly lighter background
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 highlight Normal guibg=grey90
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 highlight Cursor guibg=Green guifg=NONE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 highlight lCursor guibg=Cyan guifg=NONE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 highlight NonText guibg=grey80
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 highlight Constant gui=NONE guibg=grey95
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 highlight Special gui=NONE guibg=grey95
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 endif