-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_gvimrc
88 lines (72 loc) · 2.7 KB
/
_gvimrc
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
" Configuration file for gvim
" Written for Debian GNU/Linux by W.Akkerman <[email protected]>
" Make external commands work through a pipe instead of a pseudo-tty
"set noguipty
" Switch syntax highlighting on, when the terminal has colors
set mouse+=a
" Make shift-insert work like in Xterm
map <S-Insert> <MiddleMouse>
map! <S-Insert> <MiddleMouse>
" Also switch on highlighting the last used search pattern.
if has("syntax") && (&t_Co > 2 || has("gui_running"))
syntax on
set hlsearch
endif
" Extensions by i18n teams
if filereadable( "/etc/vim/langrc/" . $LANG . ".vim" )
exe "so " . "/etc/vim/langrc/" . $LANG . ".vim"
endif
" You can also specify a different font, overriding the default font and the
" one from the hooks above:
" set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1
"
" colorscheme desert
colorscheme werks
"set colorscheme randomly
"if ((strftime("%H") < 17 && strftime("%H") > 7))
"let g:colorscheme_list = ['sienna', 'oceanlight', 'autumnleaf']
"else
" colorschemes for night
let g:colorscheme_list = ['blacksea', 'desert', 'mymud',
\ 'dante', 'candy', 'elflord', 'golden',
\ 'less', 'vibrantink', 'murphy',
\ 'baycomb', 'bensday', 'blackboard', 'blacklight',
\ 'darkburn', 'darker-robin',
\ 'darkZ', 'desertEx', 'ChocolateLiquor']
"endif
"exec "colorscheme " . g:colorscheme_list[localtime()%len(g:colorscheme_list)]
":colorscheme desert "mymud zenburn ps_color elflord metacosm dusk
" For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries
" let &guioptions = substitute(&guioptions, "t", "", "g")
" turn &cursorline on only in GUI && normal mode
if exists("&cursorline")
set cursorline
autocmd InsertLeave * set cursorline
autocmd InsertEnter * set nocursorline
endif
"mark.vim should be re-sourced after any changing to colors. For example, if you
":set background=dark OR
":colorscheme default
"you should
":source PATH_OF_PLUGINS/mark.vim
"after that. Otherwise, you won't see the colors.
"Unfortunately, it seems that .gvimrc runs after plugin scripts. So if you set any color settings in .gvimrc, you have to add one line to the end of .gvimrc to source mark.vim.
if has('win32')
:source $VIMCFG\plugin\mark.vim
else
:source $VIMCFG/plugin/mark.vim
endif
" following config to make gvim startup faster
set guiheadroom=0
set guioptions-=m
set guioptions-=T
set guioptions-=r
set guioptions-=R
set guioptions-=l
set guioptions-=L
set guioptions-=b
set showtabline=0
" following setting may cause macvim hangs after startup?
macmenu Edit.Find.Find\.\.\. key=<nop> " free up <Cmd-F> for fullscreen
macmenu Window.Toggle\ Full\ Screen\ Mode key=<D-f>
set fullscreen