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