mostly t11 fixes
[distro-setup] / .gvimrc
1 set mousemodel=popup " right mouse button pops up a menu in the GUI
2 " set the X11 font to use
3 "
4 " this may need to be set for a newer host
5 " set guifont=DejaVu\ Sans\ Mono\ 11
6 if $OS ==# 'Windows_NT'
7 if has("xterm_clipboard")
8 set guifont=DejaVu\ Sans\ Mono\ 12
9 else
10 set guifont=DejaVu_Sans_Mono:h10:cANSI
11 endif
12 set winaltkeys=no
13 endif
14
15 if hostname() ==# 'gd'
16 set guifont=DejaVu\ Sans\ Mono\ 13
17 endif
18 if hostname() ==# 'jl'
19 set guifont=DejaVu\ Sans\ Mono\ 11
20 endif
21
22 set guicursor=a:blinkwait1000-blinkon10000-blinkoff100
23 "here are the defaults:
24 "set guicursor=n-v-c:block-Cursor/lCursor,ve:ver35-Cursor,o:hor50-Cursor,i-ci:ver25-Cursor/lCursor,r-cr:hor20-Cursor/lCursor,sm:block-Cursor-blinkwait175-blinkoff150-blinkon175
25
26 "Crude way of maximizing when the console is small. optimized for my system.
27 if &columns < 60 || &lines <20 || exists("$DMAXVIM")
28 set columns=158
29 set lines=51
30 endif
31 "remove menu and button stuff.
32 set go-=m
33 set go-=T
34 " no right scrollbar
35 set go-=r
36 "use non gui tabline, stops maxmized kde bug.
37 set go-=e
38 "use console prompts
39 set go+=c
40 " no left scrollbar
41 set go-=L
42
43 " Use a sufficiently wide window automatically when started as "gvimdiff"
44 if (&foldmethod == 'diff')
45 set columns=165
46 endif
47
48 " For bug 33327, add a mapping which allows shift-insert to function
49 " as expected in insert and command-line modes
50 map! <s-insert> <c-r>*