3 homepage: https://webinstall.dev/vim-gui
5 vim-gui enables Vim's built-in support for mouse, clipboard, etc
8 To update (replacing the current version) run `webi vim-gui`.
12 Vim has built-in GUI support.
14 It is turned off by default and when turned on may not behave exactly as
17 This vim-gui plugin turns on mouse support with insert mode on click,
18 select-to-copy clipboard, and other GUI options.
20 ### How to configure manually
22 Create the file `~/.vim/plugins/gui.vim`. Add the same contents as
23 <https://github.com/webinstall/webi-installers/blob/master/vim-gui/gui.vim>.
25 That will look something like this:
28 " turn on mouse support
31 " keep copy-on-select and other GUI options
32 set clipboard+=autoselect guioptions+=a
34 " enter insert mode on left-click
35 nnoremap <LeftMouse> <LeftMouse>i
38 You'll then need to update `~/.vimrc` to source that plugin:
41 " Mouse Support: reasonable defaults from webinstall.dev/vim-gui
42 source ~/.vim/plugins/gui.vim