]> git.friedersdorff.com Git - max/saltfiles.git/blob - states/nvim/files/ginit.vim
INSTALL NEOVIM
[max/saltfiles.git] / states / nvim / files / ginit.vim
1 " Enable Mouse
2 set mouse=a
3
4 " Set Editor Font
5 if exists(':GuiFont')
6     " Use GuiFont! to ignore font errors
7     GuiFont Monaco Nerd Font Mono:h10
8 endif
9
10 " Disable GUI Tabline
11 if exists(':GuiTabline')
12     GuiTabline 0
13 endif
14
15 " Disable GUI Popupmenu
16 if exists(':GuiPopupmenu')
17     GuiPopupmenu 0
18 endif
19
20 " Enable GUI ScrollBar
21 if exists(':GuiScrollBar')
22     GuiScrollBar 1
23 endif
24
25 " Right Click Context Menu (Copy-Cut-Paste)
26 nnoremap <silent><RightMouse> :call GuiShowContextMenu()<CR>
27 inoremap <silent><RightMouse> <Esc>:call GuiShowContextMenu()<CR>
28 xnoremap <silent><RightMouse> :call GuiShowContextMenu()<CR>gv
29 snoremap <silent><RightMouse> <C-G>:call GuiShowContextMenu()<CR>gv