Merge branch 'vim-with-runtime' into feat/quickfix-title
[vim_extended.git] / runtime / gvimrc_example.vim
blob5a5197e99a4d579e1cac4e0cb40ddbae7352c588
1 " An example for a gvimrc file.
2 " The commands in this are executed when the GUI is started.
4 " Maintainer:   Bram Moolenaar <Bram@vim.org>
5 " Last change:  2001 Sep 02
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
13 " Make external commands work through a pipe instead of a pseudo-tty
14 "set noguipty
16 " set the X11 font to use
17 " set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1
19 set ch=2                " Make command line two lines high
21 set mousehide           " Hide the mouse when typing text
23 " Make shift-insert work like in Xterm
24 map <S-Insert> <MiddleMouse>
25 map! <S-Insert> <MiddleMouse>
27 " Only do this for Vim version 5.0 and later.
28 if version >= 500
30   " I like highlighting strings inside C comments
31   let c_comment_strings=1
33   " Switch on syntax highlighting if it wasn't on yet.
34   if !exists("syntax_on")
35     syntax on
36   endif
38   " Switch on search pattern highlighting.
39   set hlsearch
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
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
59 endif