dotfiles/.config/nvim/ginit.vim
2021-11-13 19:24:20 +01:00

46 lines
912 B
VimL
Executable File

" Enable Mouse
set mouse=a
" Set Editor Font
if exists(':GuiFont')
" Use GuiFont! to ignore font errors
GuiFont Monospace:h10
endif
" Disable GUI Tabline
if exists(':GuiTabline')
GuiTabline 1
endif
" Disable GUI Popupmenu
if exists(':GuiPopupmenu')
GuiPopupmenu 1
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
set background=dark
hi clear
if exists("syntax_on")
syntax reset
endif
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
set tabstop=2
set shiftwidth=2
set expandtab
set rtp+=/home/q3aql/.config/nvim/tree.nvim/
packadd onedark.vim
colorscheme onedark