home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / mac / vim55rt.sit / runtime / gvimrc_example.vim < prev    next >
Encoding:
Text File  |  1999-09-25  |  1.5 KB  |  58 lines  |  [TEXT/VIM!]

  1. " An example for a gvimrc file.
  2. " The commands in this are executed when the GUI is started.
  3. "
  4. " Maintainer:    Bram Moolenaar <Bram@vim.org>
  5. " Last change:    1999 Feb 02
  6. "
  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.  
  12. " Make external commands work through a pipe instead of a pseudo-tty
  13. "set noguipty
  14.  
  15. " set the X11 font to use
  16. " set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1
  17.  
  18. " Make command line two lines high
  19. set ch=2
  20.  
  21. " Make shift-insert work like in Xterm
  22. map <S-Insert> <MiddleMouse>
  23. map! <S-Insert> <MiddleMouse>
  24.  
  25. " Only do this for Vim version 5.0 and later.
  26. if version >= 500
  27.  
  28.   " I like highlighting strings inside C comments
  29.   let c_comment_strings=1
  30.  
  31.   " Switch on syntax highlighting.
  32.   syntax on
  33.  
  34.   " Switch on search pattern highlighting.
  35.   set hlsearch
  36.  
  37.   " 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.   " Hide the mouse pointer while typing
  44.   set mousehide
  45.  
  46.   " Set nice colors
  47.   " background for normal text is light grey
  48.   " Text below the last line is darker grey
  49.   " Cursor is green
  50.   " Constants are not underlined but have a slightly lighter background
  51.   highlight Normal guibg=grey90
  52.   highlight Cursor guibg=Green guifg=NONE
  53.   highlight NonText guibg=grey80
  54.   highlight Constant gui=NONE guibg=grey95
  55.   highlight Special gui=NONE guibg=grey95
  56.  
  57. endif
  58.