gvimrc_example.vim 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. " An example for a gvimrc file.
  2. " The commands in this are executed when the GUI is started, after the vimrc
  3. " has been executed.
  4. "
  5. " Maintainer: Bram Moolenaar <Bram@vim.org>
  6. " Last change: 2016 Apr 05
  7. "
  8. " To use it, copy it to
  9. " for Unix: ~/.gvimrc
  10. " for Amiga: s:.gvimrc
  11. " for MS-Windows: $VIM\_gvimrc
  12. " for Haiku: ~/config/settings/vim/gvimrc
  13. " for OpenVMS: sys$login:.gvimrc
  14. " Make external commands work through a pipe instead of a pseudo-tty
  15. "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
  18. set ch=2 " Make command line two lines high
  19. set mousehide " Hide the mouse when typing text
  20. " Make shift-insert work like in Xterm
  21. map <S-Insert> <MiddleMouse>
  22. map! <S-Insert> <MiddleMouse>
  23. " Only do this for Vim version 5.0 and later.
  24. if version >= 500
  25. " Switch on syntax highlighting if it wasn't on yet.
  26. if !exists("syntax_on")
  27. syntax on
  28. endif
  29. " For Win32 version, have "K" lookup the keyword in a help file
  30. "if has("win32")
  31. " let winhelpfile='windows.hlp'
  32. " map K :execute "!start winhlp32 -k <cword> " . winhelpfile <CR>
  33. "endif
  34. " Set nice colors
  35. " background for normal text is light grey
  36. " Text below the last line is darker grey
  37. " Cursor is green, Cyan when ":lmap" mappings are active
  38. " Constants are not underlined but have a slightly lighter background
  39. highlight Normal guibg=grey90
  40. highlight Cursor guibg=Green guifg=NONE
  41. highlight lCursor guibg=Cyan guifg=NONE
  42. highlight NonText guibg=grey80
  43. highlight Constant gui=NONE guibg=grey95
  44. highlight Special gui=NONE guibg=grey95
  45. endif