toggle_mouse


Ⅰ. 插件描述

Toggles the mouse focus between Vim and your terminal emulator, allowing terminal emulator mouse commands, like copy/paste.

Ⅱ. 基本信息

创建日期:  2010-07-26
使用用户:  182
Github星:  53
插件作者:  Vincent Driessen

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'nvie/toggle-mouse'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'nvie/toggle-mouse'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'nvie/toggle-mouse'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/nvie/vim-togglemouse

Ⅳ. 文档说明

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, remap it to
another key. It autodetects whether it has been remapped and won't register
the <F12> key if so.

添加新评论