Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable context menu by default, add documentation.
Users can opt-in to a right-click menu in their ginit.vim file. Normal Mode: nnoremap <silent><RightMouse> :call GuiShowContextMenu()<CR> Insert Mode: inoremap <silent><RightMouse> <Esc>:call GuiShowContextMenu()<CR> " <Esc> or <C-O> is required, so the command runs in Normal Mode. " <Esc> will exit, and <C-O> will remain in Insert Mode. Visual Modea; vnoremap <silent><RightMouse> :call GuiShowContextMenu()<CR>gv " gv causes the selection to persist after the event. The call to " GuiShowContextMenu wipes the selection, and gv restores it.
- Loading branch information