-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gvimrc
36 lines (33 loc) · 975 Bytes
/
.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
" MacVim GUI mode
if has("gui_macvim")
"set guifont=Bitstream\ Vera\ Sans\ Mono:h24
"set guifont=Monaco:h24
"set guifont=Ubuntu\ Mono\ derivative\ Powerline:h36
"set guifont=DejaVu\ Sans\ Mono\ for\ Powerline:h30
"set guifont=Liberation\ Mono\ for\ Powerline:h30
set macligatures
set guifont=Fira\ Code:h32
set guioptions=aAce
set fuoptions=maxvert,maxhorz
set noballooneval
"syntax on
"set autoindent
"set smartindent
"set tabstop=2
"set shiftwidth=2
"set expandtab
"set encoding=utf-8
"set fileencoding=utf-8
" resize current buffer by +/- 5
nnoremap <M-Right> :vertical resize +5<CR>
nnoremap <M-Left> :vertical resize -5<CR>
nnoremap <M-Up> :resize -5<CR>
nnoremap <M-Down> :resize +5<CR>
" Command+Option+Right for next
map <D-M-Right> :tabn<CR>
" Command+Option+Left for previous
map <D-M-Left> :tabp<CR>
" Automatically resize splits
" when resizing MacVim window
autocmd VimResized * wincmd =
endif