-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgvimrc
40 lines (35 loc) · 1.39 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
" ============================================================================
" File: gvimrc
" Maintainer: https://github.com/EvanQuan/qvim/
" Version: 1.1.0
"
" Contains optional runtime configuration settings to initialize GUI Vim when
" it starts. For Vim versions before 7.4, this should be linked to the
" ~/.gvimrc file as described in the README.md file. Later versions
" automatically detect this as the 2nd user gvimrc file.
"
" Press ENTER or za to toggle category folding/unfolding.
" ============================================================================
" Fonts fall back to next on list if not available. Exclude Linux, which
" doesn't seem to work.
"
if has('win32') || has('win64') || has('gui_macvim')
set guifont=Hack\ Regular\ Nerd\ Font\ Complete:h12,Fira\ Code\ Regular:h12,Iosevka:h12,Meslo_LG_M_for_Powerline:h12,Consolas:h12
endif
" No scroll bars
"
set guioptions= " No scroll bars
" Disable all cursor blinking
set guicursor+=a:blinkon0
" CTRL-F is the search and replace dialog,
" but in console, it might be backspace, so don't map it there
"
" TODO what C-H?
nnoremap <C-F> :promptrepl\<Return>
inoremap <C-F> <C-\><C-O>:promptrepl<Return>
cnoremap <C-F> <C-\><C-C>:promptrepl<Return>
" Disable audio and visualbell alerts entirely when scrolling beyond file lines
" or pressing escape in normal mode
if has('autocmd')
autocmd GUIEnter * set visualbell t_vb=
endif