4 ms·
Vim does have support for mouse usage (depending on the terminal)[0]. You can add the following to your config: set mouse=a At that point you can quickly sele
by Moogs 9y ago
Vim does have support for mouse usage (depending on the terminal)[0]. You can add the following to your config:
set mouse=a
At that point you can quickly select text, hit "d" to cut it, click where you want it and hit p
[0] http://vimdoc.sourceforge.net/htmldoc/options.html#%27mouse%27 http://vimdoc.sourceforge.net/htmldoc/options.html#%27mouse%...
- jimmaswell 9y agoI knew about this but I assumed it couldn't be done through ssh/putty.
- exDM69 9y agoNot sure about putty but it definitely works over SSH depending on your terminal emulator.
- geofft 9y agoIt works through PuTTY, and moreover it's the default config in Debian 9, which I find sort of annoying because I'm used to using the mouse in PuTTY for copy/paste. But it does work smoothly (including through a screen session and through ssh to other machines).
- shangxiao 9y agoPerhaps you should add an [edit] to your original post seeing as it's nabbed top spot and spawning several threads about lack of cursor support?
- jstimpfle 9y agoIt works independently of transmission method since the mouse clicks are simply translated into "keyboard presses", i.e. encoded to stdin as escape sequences. It's a single stream. Of course, the terminal emulator must play nice with the windowing environment and translate mouse events correctly.
- kazinator 9y agoWhat cannot be used through SSH/PuTTY is the IDE that you're comparing text-only Vim to.
- jimmaswell 9y agoOne that runs on X can be tunneled.