Mailinglist Archive: opensuse (795 mails)

< Previous Next >
Re: [opensuse] tumbleweed and vim question
On 11/04/2017 06:58 PM, Andrei Borzenkov wrote:
04.11.2017 15:30, Bernhard Voelker пишет:
- open gnome-terminal in regular user session (openbox here),
- sudo -i
- root$ vi /etc/hosts
- enter 'insert' mode with 'i',
- go into another terminal and double-click a word
  for selection
- paste with middle mouse in root's vi session
--> pastes something completely outdated.  The same happens
in xterm, so somehow the copy/paste into vim in a sudo session
is the problem - but it works perfectly with the regular user.


Compare "set mouse" in both cases.

Bingo: "mouse=" as regular user, "mouse=a" as root.
Don't know where this comes from: the regular user doesn't have this
in his .vimrc, and root doesn't (better didn't, hehe) have a .vimrc
at all.

Thanks & have a nice day,
Berny


--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >