sponsor Vim development Vim logo Vim Book Ad

Mouse Toggle : Toggles mouse on/off.

 script karma  Rating -1/7, Downloaded by 1074  Comments, bugs, improvements  Vim wiki

created by
Kobus Retief
 
script type
utility
 
description
Toggles mouse between default setting (set it as mouse_default), and unset.  Simple concept, but pretty effective.  I use it to swap between internal Vim mouse handling for window resizing etc. and X window mouse handling for clipboard operations from/to xterm.  The basic script can, of course, be modified to toggle any setting (e.g. autoindent/no autoindent), or even rotate between a group of settings (e.g. various cinoptions).  Depending on your <Leader> setting, use it as follows: <Leader>m to toggle (default: backslash-m).
 
install details
Copy to ~/.vim/plugin/
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
mouse_toggle.vim 1.0 2003-11-13 6.0 Kobus Retief Initial upload
ip used for rating: 18.224.39.32

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github