Quantcast

MiddleButton and pastetoggle

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

MiddleButton and pastetoggle

statquant2
Hello guys,
I am trying to set the mouse middle button to automatically call pastetoggle before pasting, as when I use the middle click I always end up in having indented text.
How could I do that ?

PS: I am not using mouse=whatever (don't like it)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MiddleButton and pastetoggle

statquant2
It should be super easy, I just want to map <MiddleMouse> to "*p when in normal mode, how can I do this ?
I tried im=n my vimrc :
map <MiddleMouse> "*p but it is not working ???
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MiddleButton and pastetoggle

Roger
It depends on your operating system.  Windows requires you to use copy/paste menu items, while Linux XOrg and Linux Terminals has this feature.

FYI: I just found mintty package within cygwin now allows mouse selection and mouse button pastes.  mintty also puts a nice icon of itself on your desktop too!

(It sounds like you're using Windows.)

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Loading...