36 lines
860 B
VimL
36 lines
860 B
VimL
" Force load nvim-qt GUI shim
|
|
let s:nvim_qt_shim = 'C:/misc/nvim/share/nvim-qt/runtime/plugin/nvim_gui_shim.vim'
|
|
if filereadable(s:nvim_qt_shim)
|
|
execute 'source' s:nvim_qt_shim
|
|
endif
|
|
|
|
" Enable Mouse
|
|
set mouse=a
|
|
|
|
" Set Editor Font
|
|
if exists(':GuiFont')
|
|
" Use GuiFont! to ignore font errors
|
|
GuiFont {font_name}:h{size}
|
|
endif
|
|
|
|
" Disable GUI Tabline
|
|
if exists(':GuiTabline')
|
|
GuiTabline 0
|
|
endif
|
|
|
|
" Disable GUI Popupmenu
|
|
if exists(':GuiPopupmenu')
|
|
GuiPopupmenu 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
|