annotate runtime/gvimrc_example.vim @ 40:01573c245f15

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