-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gvimrc
108 lines (76 loc) · 1.87 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
"---------------"
" Global values "
"---------------"
" {{{
let g:gvimrc = get(g:, 'gvimrc', {})
let g:gvimrc['loaded'] = get(g:gvimrc, 'loaded', 0)
" }}}
"---------"
" Options "
"---------"
" {{{
let g:vimrc['guifont'] = #{
\ size: 9,
\ }
let &guifont = 'RictyDiminished NF ' .. g:vimrc.guifont.size
set guioptions-=T
set guioptions-=m
set guioptions-=e
set guioptions-=r
set guioptions-=L
set guioptions+=c
set winaltkeys=no
set mouse=
" }}}
"----------"
" Commands "
"----------"
" {{{
function! s:open_this_file_in_new_window()
let filepath = expand('%')
execute ':bd' filepath
execute ':!start' g:vimrc.gui_editor printf('"%s"', fnameescape(filepath))
endfunction
command! OpenThisFileInNewWindow call s:open_this_file_in_new_window()
" }}}
"----------"
" Augroups "
"----------"
" {{{
augroup gvimrc
autocmd!
augroup END
" }}}
"---------------"
" Local scripts "
"---------------"
" {{{
if filereadable($'${$HOME}/.gvimrc_env')
source ~/.gvimrc_env
endif
" }}}
"---------"
" Plugins "
"---------"
" TweetVim {{{
let g:tweetvim_display_username = 1
let g:tweetvim_display_icon = 1
" }}}
" J6uil {{{
let g:J6uil_display_icon = 1
" }}}
" vim-suvmode {{{
call submode#enter_with('font_size', 'n', 's', '<C-s>+', ':<C-u>call vimrc#increment_gui_fontsize()<CR>')
call submode#enter_with('font_size', 'n', 's', '<C-s>-', ':<C-u>call vimrc#decrement_gui_fontsize()<CR>')
call submode#map('font_size', 'n', 's', '+', ':<C-u>call vimrc#increment_gui_fontsize()<CR>')
call submode#map('font_size', 'n', 's', '-', ':<C-u>call vimrc#decrement_gui_fontsize()<CR>')
" }}}
" vim-cursorword {{{
augroup gvimrc
autocmd VimEnter,ColorScheme * highlight CursorWord0 gui=bold guibg=#66cdaa guifg=#006400
autocmd VimEnter,ColorScheme * highlight CursorWord1 gui=bold guibg=#66cdaa guifg=#191970
augroup END
" }}}
syntax enable
let g:gvimrc['loaded'] = 1
" vim:foldmethod=marker