summaryrefslogtreecommitdiff
path: root/ginit.vim
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2023-08-26 16:06:53 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2023-08-26 16:06:53 -0600
commit4684efd8216bd3b4d2f2af7b439e030309e85206 (patch)
treed4e760a7a133e29a5f0739ba4ed9130ba4da0cae /ginit.vim
parente6952fe070ff31e8e6c3d77907681601e6da30e6 (diff)
feat: add neovim-qt support (windows) and .editorconfig
Diffstat (limited to 'ginit.vim')
-rw-r--r--ginit.vim29
1 files changed, 29 insertions, 0 deletions
diff --git a/ginit.vim b/ginit.vim
new file mode 100644
index 0000000..5645ef2
--- /dev/null
+++ b/ginit.vim
@@ -0,0 +1,29 @@
+" Enable Mouse
+set mouse=a
+
+" Set Editor Font
+if exists(':GuiFont')
+ " Use GuiFont! to ignore font errors
+ GuiFont! NotoMono Nerd Font Mono
+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