forked from cowboy/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gvimrc
38 lines (33 loc) · 969 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
37
38
set go-=T " Hide toolbar
set go-=r " Hide right scrollbar
set go-=L " Hide left scrollbar
if has('win32')
" My favorite font!
set guifont=M+_1m_for_Powerline:h12
" Alt-[, ]: Buffer Navigation
nmap <M-[> :bprev<CR>
nmap <M-]> :bnext<CR>
vmap <M-[> <Esc>:bprev<CR>
vmap <M-]> <Esc>:bnext<CR>
vmap <M-cr> <Esc>:set invfu<cr>gv
else
let s:uname = system("echo -n \"$(uname -s)\"")
if s:uname == "Linux"
set guifont=Iosevka\ Term\ 12
else " OSX
" My favorite font!
set guifont=M+\ 1m\ regular\ Nerd\ Font\ Complete:h16
" Cmd-[, ]: Buffer Navigation
nmap <D-[> :bprev<CR>
nmap <D-]> :bnext<CR>
vmap <D-[> <Esc>:bprev<CR>
vmap <D-]> <Esc>:bnext<CR>
" Cmd-T: New buffer
macm File.New\ Tab key=<nop>
nmap <D-t> :enew<CR>
vmap <D-t> <Esc>:enew<CR>
" Cmd-Enter: Toggle Fullscreen
nmap <d-cr> :set invfu<cr>
vmap <d-cr> <Esc>:set invfu<cr>gv
endif
endif