-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path_gvimrc
More file actions
148 lines (127 loc) · 3.91 KB
/
Copy path_gvimrc
File metadata and controls
148 lines (127 loc) · 3.91 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
if &diff
set background=light
colorscheme github
let &guifont = 'Meslo LG M 9'
finish
endif
function! s:gvimrc_colorscheme(colors_name)
if a:colors_name == 'luna'
"highlight vimshellError gui=underline
highlight vimshellError gui=undercurl
"highlight! link vimshellError Constant
elseif a:colors_name == 'mustang'
highlight vimshellError gui=undercurl
endif
endfunction
command! -nargs=1 GvimrcColorscheme colorscheme <args> | call <SID>gvimrc_colorscheme(<q-args>)
let g:unite_colorscheme_command = 'GvimrcColorscheme'
if g:V.is_mac()
set background=light
" GvimrcColorscheme macvim
" GvimrcColorscheme newspaper
" GvimrcColorscheme pencil
GvimrcColorscheme solarized
" for macvim.vim with dark
"hi! link Error WarningMsg
"hi VertSplit gui=NONE guifg=DarkSlateGray guibg=NONE
"hi StatusLineNC gui=NONE guifg=SlateGray guibg=Gray5
"hi Pmenu guibg=LightSteelBlue1 guibg=DarkSlateGray
"hi MatchParen guifg=White guibg=Gray25
else
set background=light
" GvimrcColorscheme aldmeris
" GvimrcColorscheme solarized
GvimrcColorscheme snowtrek
" GvimrcColorscheme office-light
" GvimrcColorscheme koehler
" GvimrcColorscheme mrkn256
" GvimrcColorscheme neverland2-darker
" GvimrcColorscheme neverland-darker
" GvimrcColorscheme luna
" GvimrcColorscheme newspaper
" GvimrcColorscheme monokai
endif
hi Folded guibg=NONE guifg=GRAY ctermfg=0
if g:V.is_mac()
set guifont=Menlo:h12
elseif vimproc#system('hostname') =~ '^linari'
let &guifont = 'Menlo Bold 12'
let &guifontwide = 'Hiragino Kaku Gothic Pro Bold 12'
else
let &guifont = 'Menlo Bold 9'
let &guifontwide = 'Hiragino Kaku Gothic Pro Bold 9'
if 1
let &guifont = 'Menlo Bold 12'
let &guifontwide = 'Hiragino Kaku Gothic Pro Bold 12'
endif
endif
let s:gvimrc_default_fonts = {
\ 'guifont': &guifont,
\ 'guifontwide': &guifontwide}
function! s:set_default_guifonts()
let &guifont = s:gvimrc_default_fonts.guifont
let &guifontwide = s:gvimrc_default_fonts.guifontwide
endfunction
nnoremap <M-0> :<C-u>call <SID>set_default_guifonts()<Cr>
if g:V.is_mac()
set transparency=2
let g:transparency = &transparency
endif
set guioptions-=T " no icons on the top of window
set guioptions-=r " no right-hand scrollbar at any time
set guioptions-=l " no left-hand scrollbar at any time
set guioptions-=L " no left-hand scrollbar at any time
set guioptions-=m " no gui menu (not for MacVim?)
set guioptions+=c " console dialogs. no popup allowed
set mouse=a " only on gui
function! s:relative_transparency(diff)
let &transparency = a:diff + &transparency
let g:transparency = &transparency
endfunction
if g:V.is_mac()
nnoremap <up> :<C-u>call <SID>relative_transparency(5)<Cr>
nnoremap <down> :<C-u>call <SID>relative_transparency(-5)<Cr>
inoremap <up> <C-o>:call <SID>relative_transparency(5)<Cr>
inoremap <down> <C-o>:call <SID>relative_transparency(-5)<Cr>
endif
winpos 99 0
set columns=500
set lines=100
" VimShell
" " normal! <C-u>
" redraw!
if v:false
augroup gvimrc
autocmd!
autocmd VimEnter * Deol -edit -start-insert -toggle -auto-cd
augroup END
endif
" }}}
" for vimshell {{{
function! GvimrcVimshellColor()
hi! link Error WarningMsg
endfunction
" }}}
" scala syntax tweaks {{{
"highlight scalaNameDefinition gui=underline
highlight scalaNameDefinition gui=italic
"hi scalaType gui=underline
"hi scalaTypeCase gui=underline
" }}}
" tabline for gui {{{
function! GuiTabLabel()
"return printf("%s/%s", expand('%:p:h:h:t'), expand('%:p:h:t'))
" depends on kana's tabpagecd
" let cwd = get(t:, 'cwd', getcwd())
let cwd = getcwd(-1, 0)
let tmp = printf("%s/%s",
\ fnamemodify(cwd, ':p:h:h:t'),
\ fnamemodify(cwd, ':p:h:t'))
return tmp . repeat(' ', 20 - len(tmp))
endfunction
set guitablabel=%!GuiTabLabel()
" }}}
if filereadable(expand('~/Dropbox/bin/ujihisa-init.sh'))
silent call system('bash ~/Dropbox/bin/ujihisa-init.sh')
endif
" vim: foldmethod=marker