summaryrefslogtreecommitdiff
path: root/share/examples/vim/gvimrc-sample
blob: d929d9dbb2cdb92c30b93b087da0acd40eea34d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
" $FreeBSD$
" An example for a gvimrc file.
" The commands in this are executed when the GUI is started.
" (based on the work done by Bram Moolenaar <Bram@vim.org>)
"
" To use it, copy it to
"     for Unix and OS/2:  ~/.gvimrc
"             for Amiga:  s:.gvimrc
"  for MS-DOS and Win32:  $VIM\_gvimrc
"
" And copy the other files to your $HOME/.vim directory 

" Make command line two lines high
set ch=2

" Make shift-insert work like in Xterm
map <S-Insert> <MiddleMouse>
map! <S-Insert> <MiddleMouse>

" Only do this for Vim version 5.0 and later.
if version >= 500

  " Switch on syntax highlighting.
  syntax on

  " Switch on search pattern highlighting.
  set hlsearch

  " Hide the mouse pointer while typing
  set mousehide

  " Edit FreeBSD DocBook files
  source $HOME/.vim/edit-sgml.vim

  " Iso-8859-1 accents in SGML
  source $HOME/.vim/accents-sgml.vim

endif