Tony wrote:
> On Sun, Oct 27, 2019 at 7:00 PM Bram Moolenaar <[email protected]> wrote: > > > > I wrote: > > > > > Patch 8.1.2226 > > > Problem: Cannot use system copy/paste in non-xterm terminals. > > > Solution: Instead of setting 'mouse' to "a" set it to "nvi" in > > > defaults.vim. > > > Files: runtime/defaults.vim, runtime/doc/term.txt, > > > runtime/doc/options.txt > > > > Please review this change. It's supposed to help for those users who > > get the default setup, thus sourcing defaults.vim. Some users > > complained that this makes it impossible to select text using the system > > clipboard, e.g. when using tmux or ssh. On the other hand, new users > > enjoy having the mouse enabled by default, instead of having to figure > > out how to make that work. Thus I didn't want to remove setting 'mouse' > > by default. > > > > The new value for 'mouse' is a compromise: The mouse works in Normal, > > Visual and Insert mode, where it's most useful. In command-line mode > > the mouse is not used by Vim, which means you can use the system > > copy/paste mechanism. That way you can also copy/paste text in Vim > > itself, instead of using the modeless selection. The only thing that no > > longer works is moving the cursor in the command line with the mouse. > > Which is a small price to pay. > > > > I had been using ":sh" for this, but if I forget to type "exit" than I > > have a Vim running in the background. Now it's just typing ":", > > selecting and copying the text, then press Esc. > > > > I hope this works best for most people. Can't please everyone though. > > Haven't compiled this yet. Can you still copy stuff from the > command-line by using Ctrl-Y in a modeless selection? With 'mouse' set to "nvi" you use the system copy/paste. E.g. when using a Mac that is Command-C and Command-V. I think that's fine for most people, CTRL-Y is probably much less known than the system copy-paste keys. And if you have your own .vimrc you won't get this change (unless you intentionally source defaults.vim). -- Normal people believe that if it ain't broke, don't fix it. Engineers believe that if it ain't broke, it doesn't have enough features yet. (Scott Adams - The Dilbert principle) /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/201910271957.x9RJvnUZ010022%40masaka.moolenaar.net.
