-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdot-gvimrc
67 lines (54 loc) · 1.46 KB
/
dot-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
59
60
61
62
63
64
65
66
67
set guioptions=aAce
" hlsearch underline
highlight Search guibg=black guifg=yellow gui=underline
set lines=45
set columns=120
if has('macmenu')
macmenu &File.New\ Tab key=<D-T>
endif
if exists('g:GuiLoaded')
GuiAdaptativeColor 1
GuiAdaptativeFont 1
GuiLinespace 1
GuiTabline 0
GuiScrollBar 1
GuiFont JetBrains_Mono:h12
endif
" Right Click Context Menu (Copy-Cut-Paste)
nnoremap <silent><RightMouse> :call GuiShowContextMenu()<CR>
inoremap <silent><RightMouse> <Esc>:call GuiShowContextMenu()<CR>
xnoremap <silent><RightMouse> :call GuiShowContextMenu()<CR>gv
snoremap <silent><RightMouse> <C-G>:call GuiShowContextMenu()<CR>gv
if has('macunix')
set guifont=JetBrains_Mono:h12
set guifontwide=Symbols_Nerd_Font_Mono:h1000-em
set transparency=1
set macmeta
set macligatures
" CtrlP clone
" CMD-t
nnoremap <D-t> <leader>t
inoremap <D-t> <ESC><leader>t
" CMD-B
nnoremap <D-B> <leader>b
inoremap <D-B> <ESC><leader>b
" SHIFT-CMD-F
nnoremap <D-F> <leader>f
inoremap <D-F> <ESC><leader>f
" SHIFT-CMD-M
nnoremap <D-M> <leader>m
inoremap <D-M> <ESC><leader>m
" CMD-V
nnoremap <D-V> <c-r>+
inoremap <D-V> <c-r>+
cnoremap <D-V> <c-r>+
" CMD-C
nnoremap <D-C> <leader>y
inoremap <D-C> <ESC><leader>y
vnoremap <D-C> <ESC><leader>y
" CPP make / makerun (for openframeworks)
" autocmd FileType cpp nmap <D-b> :make -j Release<cr>
" autocmd FileType cpp nmap <D-r> :make RunRelease<cr>
else
set guifont=JetBrains\ Mono\ 12
endif