Mercurial > vim
diff runtime/defaults.vim @ 18465:d7619a9874cd v8.1.2226
patch 8.1.2226: cannot use system copy/paste in non-xterm terminals
Commit: https://github.com/vim/vim/commit/5b418992cf254137fde2a14d7066fbea5afddb28
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 27 18:50:25 2019 +0100
patch 8.1.2226: cannot use system copy/paste in non-xterm terminals
Problem: Cannot use system copy/paste in non-xterm terminals.
Solution: Instead of setting 'mouse' to "a" set it to "nvi" in defaults.vim.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 27 Oct 2019 19:00:04 +0100 |
parents | 375a7ecdb351 |
children | 1cd44535be32 |
line wrap: on
line diff
--- a/runtime/defaults.vim +++ b/runtime/defaults.vim @@ -75,8 +75,14 @@ inoremap <C-U> <C-G>u<C-U> " In many terminal emulators the mouse works just fine. By enabling it you " can position the cursor, Visually select and scroll with the mouse. +" Only xterm can grab the mouse events when using the shift key, for other +" terminals use ":", select text and press Esc. if has('mouse') - set mouse=a + if &term =~ 'xterm' + set mouse=a + else + set mouse=nvi + endif endif " Switch syntax highlighting on when the terminal has colors or when using the