-
Notifications
You must be signed in to change notification settings - Fork 5
/
gvimrc
36 lines (29 loc) · 702 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
if has('gui_gtk3')
set gfn=DejaVu\ Sans\ Mono\ 9
set guioptions=m
let g:gist_clip_command = 'xclip -selection clipboard'
" system copy/paste
" https://superuser.com/a/189198
vmap <C-c> "+yi
vmap <C-x> "+c
vmap <C-v> c<ESC>"+p
imap <C-v> <C-r><C-o>+
elseif has('gui_macvim')
set guifont=Menlo:h13
set linespace=1
set guioptions=aAce
let g:gist_clip_command = 'pbcopy'
" New tab
macmenu &File.New\ Tab key=<D-S-t>
" fzf
map <D-t> :GFiles<CR>
map <D-r> :Files<CR>
" quick fix list navigation
map <D-j> :cn<CR>
imap <D-j> <ESC>:cn<CR>
map <D-k> :cp<CR>
imap <D-k> <ESC>:cp<CR>
" Ack
macmenu Edit.Find.Find… key=<nop>
map <D-f> :Ack<space>
endif