-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathginit.vim
More file actions
40 lines (33 loc) · 876 Bytes
/
ginit.vim
File metadata and controls
40 lines (33 loc) · 876 Bytes
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
" Enable Mouse
set mouse=a
" Set Editor Font
if exists(':GuiFont')
" Use GuiFont! to ignore font errors
GuiFont HackGen35\ Console\ NF:h17
endif
" Disable GUI Tabline
if exists(':GuiTabline')
GuiTabline 0
endif
" Disable GUI Popupmenu
if exists(':GuiPopupmenu')
GuiPopupmenu 0
endif
" Paste normal mode
nnoremap <D-v> "+P
" Paste visual mode
vnoremap <D-v> "+P
" Paste command mode
cnoremap <D-v> <C-R>+
" Paste insert mode
inoremap <D-v> <C-R>+
tnoremap <D-v> <C-\><C-N>"+pi
" 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