-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathginit.vim
62 lines (53 loc) · 1.67 KB
/
ginit.vim
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
" Enable Mouse
set mouse=a
" set guifont=FiraCode\ Nerd\ Font\ Mono:h13
" Set Editor Font
if exists(':GuiFont')
" Use GuiFont! to ignore font errors
GuiFont "Fira Code:h13"
endif
" Disable GUI Tabline
if exists(':GuiTabline')
GuiTabline 0
endif
" Enable GUI ScrollBar
if exists(':GuiScrollBar')
GuiScrollBar 1
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
cmap <S-Insert> <C-R>+
cmap <C-v> <C-R>*
inoremap <D-v> <C-\><C-n>"+p
nnoremap <D-v> <C-\><C-n>"+p
tnoremap <D-v> <C-\><C-n>"+pi
cnoremap <D-v> <C-r>+
inoremap <silent><D-s> :w<CR>
nnoremap <silent><D-s> :w<CR>
vnoremap <silent><D-s> :w<CR>
tnoremap <silent><D-s> :w<CR>
if !has("gui_vimr")
inoremap <silent><D-c> "+y
nnoremap <silent><D-c> "+y
vnoremap <silent><D-c> "+y
tnoremap <silent><D-c> "+y
end
if has("gui_vimr")
VimRSetFontAndSize "FiraCode Nerd Font Mono", 13
end
if exists('g:fvim_loaded')
" good old 'set guifont' compatibility with HiDPI hints...
" Ctrl-ScrollWheel for zooming in/out
nnoremap <silent> <C-ScrollWheelUp> :set guifont=+<CR>
nnoremap <silent> <C-ScrollWheelDown> :set guifont=-<CR>
nnoremap <A-CR> :FVimToggleFullScreen<CR>
" FVimBackgroundComposition 'transparent' " 'none', 'transparent', 'blur' or 'acrylic'
" FVimBackgroundOpacity 0.85
endif
" let g:neovide_transparency=0.92
" let g:neovide_no_idle=v:true
" let g:neovide_input_use_logo=v:true
" let g:neovide_cursor_vfx_mode = "ripple"