-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgvimrc
59 lines (46 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
" -----------------------------------------------------------
" GRAPHICAL
" -----------------------------------------------------------
set anti
set guioptions=gemc
colorscheme solarized
set background=dark
" Fix vim-gitgutter sign-column contrast issue with Solarized theme
highlight clear SignColumn
highlight GitGutterAdd ctermfg=green guifg=darkgreen
highlight GitGutterChange ctermfg=yellow guifg=darkyellow
highlight GitGutterDelete ctermfg=red guifg=darkred
highlight GitGutterChangeDelete ctermfg=yellow guifg=darkyellow
" map ToggleBG to F5
call togglebg#map("<F5>")
if has('gui_running')
set guifont=DejaVu\ Sans\ Mono\ for\ Powerline
" vim-airline
let g:airline_powerline_fonts = 1
endif
" -----------------------------------------------------------
" Mappings
" -----------------------------------------------------------
if has("gui_macvim")
" Command-Return to toggle full screen mode
macmenu Window.Toggle\ Full\ Screen\ Mode key=<D-CR>
" Start Ack with Command-Shift-F
map <D-F> :Ack<space>
" Start Command-T with ... Command-T
macmenu &File.New\ Tab key=<nop>
map <D-t> :CommandT<CR>
" Control-Option to switch viewports
map <C-M-Up> <C-w>k
imap <C-M-Up> <Esc> <C-w>k
map <C-M-Down> <C-w>j
imap <C-M-Down> <Esc> <C-w>j
map <C-M-Right> <C-w>l
imap <C-M-Right> <Esc> <C-w>l
map <C-M-Left> <C-w>h
imap <C-M-Left> <C-w>h
" Command-Option-ArrowKey to switch tabs
map <D-M-Right> :tabnext<CR>
imap <D-M-Right> <Esc>:tabnext<CR>
map <D-M-Left> :tabprevious<CR>
imap <D-M-Right> <Esc>:tabnext<CR>
endif