blob: 083dacee905b98bce55de4db665f144adfd288d6 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" An example for a gvimrc file.
Bram Moolenaar54f1b7a2016-04-05 22:07:04 +02002" The commands in this are executed when the GUI is started, after the vimrc
3" has been executed.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004"
5" Maintainer: Bram Moolenaar <Bram@vim.org>
Bram Moolenaar54f1b7a2016-04-05 22:07:04 +02006" Last change: 2016 Apr 05
Bram Moolenaar071d4272004-06-13 20:20:40 +00007"
8" To use it, copy it to
Bram Moolenaarb3f74062020-02-26 16:16:53 +01009" for Unix: ~/.gvimrc
10" for Amiga: s:.gvimrc
11" for MS-Windows: $VIM\_gvimrc
12" for Haiku: ~/config/settings/vim/gvimrc
13" for OpenVMS: sys$login:.gvimrc
Bram Moolenaar071d4272004-06-13 20:20:40 +000014
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
21set ch=2 " Make command line two lines high
22
23set mousehide " Hide the mouse when typing text
24
25" Make shift-insert work like in Xterm
26map <S-Insert> <MiddleMouse>
27map! <S-Insert> <MiddleMouse>
28
29" Only do this for Vim version 5.0 and later.
30if version >= 500
31
Bram Moolenaar071d4272004-06-13 20:20:40 +000032 " Switch on syntax highlighting if it wasn't on yet.
33 if !exists("syntax_on")
34 syntax on
35 endif
36
Bram Moolenaar071d4272004-06-13 20:20:40 +000037 " 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
55endif