aboutsummaryrefslogtreecommitdiff
path: root/gvimrc
blob: 77bfa327e219fdb68ab28838acdd25af07949ade (plain)
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
" ======================================================================================================================
" GUI_DEFAULTS:
" We want to have a minimal UI
" ======================================================================================================================

if has("gui_running")
  set guicursor=a:block-blinkon100
  set browsedir=buffer
  set toolbar+=text
  set guiheadroom=0
  set guioptions+=eig
  set guioptions-=T   | " toolbar
  set guioptions+=c   | " use console dialogues instead of popups
  set guioptions+=a   | " auto select: copy&paste using middle click
  set guioptions+=m   | " remove menu
  set guioptions-=e   | " do not display tabs
  set guioptions-=L   | " do not show left scrollbar
  set guioptions-=r   | " do not show right scrollbar
  set winaltkeys=menu | " behave like other windows: ALT-key can be used to open the menu (and cannot be :remaped)
  " set selectmode=mouse,key,cmd  | " enters vim's select mode when pressing shift-left or shift-END
  " set keymodel=startsel,stopsel | " makes shift-left, shift-right available for selecting text

  set background=light
  " its possible to define alternative fonts (order matters), but we will
  " use the systems default font and cofigure that if necessary
  set guifont=Monospace\ 10

  " like in the terminal: use Ctrl-shift-v for paste in vim's command editor
  cnoremap <c-s-v> <c-r>*
endif

exec ":source " . fnamemodify(expand("$MYVIMRC"), ":p:h") . "/vimrc"
..