Skip to content
Toggles the mouse focus between Vim and your terminal emulator, allowing terminal emulator mouse commands, like copy/paste.
VimL
Pull request Compare This branch is 2 commits ahead, 1 commit behind nvie:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
plugin
README.mdown

README.mdown

vim-togglemouse Project status

Installation

  1. Copy the file plugin/toggle_mouse.vim to your ~/.vim/plugin directory
  2. There is no step 2.

Usage

Press <F12> to toggle mouse focus between Vim and your terminal emulator, allowing terminal emulator mouse commands, like copy/paste.

Toggling restores the Vim 'mouse' option value to its previous value.

Customization

If you don't want to use the <F12> key for mouse toggling, simply remap it to another key. It autodetects whether it has been remapped and won't register the <F12> key if so.

Something went wrong with that request. Please try again.