Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | " An example for a gvimrc file. |
Bram Moolenaar | 54f1b7a | 2016-04-05 22:07:04 +0200 | [diff] [blame] | 2 | " The commands in this are executed when the GUI is started, after the vimrc |
| 3 | " has been executed. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4 | " |
Christian Brabandt | e978b45 | 2023-08-13 10:33:05 +0200 | [diff] [blame] | 5 | " Maintainer: The Vim Project <https://github.com/vim/vim> |
| 6 | " Last Change: 2023 Aug 10 |
| 7 | " Former Maintainer: Bram Moolenaar <Bram@vim.org> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8 | " |
| 9 | " To use it, copy it to |
Bram Moolenaar | b3f7406 | 2020-02-26 16:16:53 +0100 | [diff] [blame] | 10 | " for Unix: ~/.gvimrc |
| 11 | " for Amiga: s:.gvimrc |
| 12 | " for MS-Windows: $VIM\_gvimrc |
| 13 | " for Haiku: ~/config/settings/vim/gvimrc |
| 14 | " for OpenVMS: sys$login:.gvimrc |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15 | |
| 16 | " Make external commands work through a pipe instead of a pseudo-tty |
| 17 | "set noguipty |
| 18 | |
| 19 | " set the X11 font to use |
| 20 | " set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1 |
| 21 | |
| 22 | set ch=2 " Make command line two lines high |
| 23 | |
| 24 | set mousehide " Hide the mouse when typing text |
| 25 | |
| 26 | " Make shift-insert work like in Xterm |
| 27 | map <S-Insert> <MiddleMouse> |
| 28 | map! <S-Insert> <MiddleMouse> |
| 29 | |
| 30 | " Only do this for Vim version 5.0 and later. |
| 31 | if version >= 500 |
| 32 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 33 | " Switch on syntax highlighting if it wasn't on yet. |
| 34 | if !exists("syntax_on") |
| 35 | syntax on |
| 36 | endif |
| 37 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 38 | " For Win32 version, have "K" lookup the keyword in a help file |
| 39 | "if has("win32") |
| 40 | " let winhelpfile='windows.hlp' |
| 41 | " map K :execute "!start winhlp32 -k <cword> " . winhelpfile <CR> |
| 42 | "endif |
| 43 | |
| 44 | " Set nice colors |
| 45 | " background for normal text is light grey |
| 46 | " Text below the last line is darker grey |
| 47 | " Cursor is green, Cyan when ":lmap" mappings are active |
| 48 | " Constants are not underlined but have a slightly lighter background |
| 49 | highlight Normal guibg=grey90 |
| 50 | highlight Cursor guibg=Green guifg=NONE |
| 51 | highlight lCursor guibg=Cyan guifg=NONE |
| 52 | highlight NonText guibg=grey80 |
| 53 | highlight Constant gui=NONE guibg=grey95 |
| 54 | highlight Special gui=NONE guibg=grey95 |
| 55 | |
| 56 | endif |