-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gvimrc
executable file
·41 lines (36 loc) · 1.54 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
"set guifont=Consolas:h9
"set guifont=Consolas:h8
"set guifont=Consolas:h10
set guifont=Hack:h10
"set printfont=Consolas:h9
"set printfont=Consolas:h8
set printfont=Hack:h8
"set printoptions=syntax:y,left:18pt,right:18pt,top:32pt,bottom:32pt,number:y
set printoptions=left:18pt,right:18pt,top:25pt,bottom:25pt,header:2,syntax:y,number:y,wrap:y,duplex:off,collate:y,jobsplit:n,portrait:y,paper:letter,formfeed:n
"set printoptions=left:18pt,right:18pt,top:25pt,bottom:25pt,header:2,syntax:y,number:n,wrap:y,duplex:off,collate:y,jobsplit:n,portrait:y,paper:letter,formfeed:n
set columns=120
set lines=40
set ch=2 " Make command line two lines high
set mousehide " Hide the mouse when typing text
" Make shift-insert work like in Xterm
map <S-Insert> <MiddleMouse>
map! <S-Insert> <MiddleMouse>
" For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries
let &guioptions = substitute(&guioptions, "t", "", "g")
" Always show filetypes in menu
"Commented out b/c of following error
"E329: No menu \"&Show filetypes in menu\"
"let do_syntax_sel_menu = 1|runtime! synmenu.vim|aunmenu &Syntax.&Show\ filetypes\ in\ menu
" Attempts at fixing UTF-8 issues that occur _only_ in gvim.
" (Vim in mintty/bash is fine.)
if has("multi_byte")
if &termencoding == ""
let &termencoding = &encoding
endif
set encoding=utf-8
setglobal fileencoding=utf-8
" Uncomment to have 'bomb' on by default for new files.
" Note, this will not apply to the first, empty buffer created at Vim startup.
"setglobal bomb
set fileencodings=ucs-bom,utf-8,latin1
endif