Git Product home page Git Product logo

vim-togglemouse's Introduction

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.

vim-togglemouse's People

Contributors

nvie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vim-togglemouse's Issues

Documentation not understandable for vim beginners

The sentence "If you don't want to use the key for mouse toggling, simply remap it to another key." is a little bit confusing to beginners.

What does "simply remap" mean?

I for example have F12 set to togglepaste and would like to have F11 set to togglemouse but so fall all my attempts have failed.

What is the correct form to remap it in .vimrc?

How do you "remap" the key

Your guide says

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.

I'm confused, I'm not sure how to "remap" a key (when I look this up all I find are things like noremap, which is a recursion free key mapping definition). I took a look at the code and it looks like if I could map a key to your s:ToggleMouse() function (before loading your plugin) then that would work and <F12> would not be mapped. The problem is I don't know how to call that function because it looks like s is replaced with a autogenerated name by vim to avoid naming conflicts.

How are you supposed to do this?

Does this work with pathogen?

I'm a total vim noob. Just tried to clone the repo into my bundle folder, but F12 doesn't seem to have any effect.
I also tried to rename your plugin folder to ftplugin, again with no luck...

Is there really no second step?? :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.