[arch-general] vi - Howto make past from clipboard work??
Listmates, One thing I have to fix is vi's behavior of wanting to go into visual mode ever time I try to select something and vi's refusal to paste the clipboard in insert mode using the middle mouse button. I know this must be a basic configuration setting somewhere? I've looked for /etc/vimrc and ~/.vimrc but all I found was ~/.viminfo and that didn't help. So... hoping not to have to reinvent the wheel, where is this setting hiding?? -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
David C. Rankin wrote:
Listmates,
One thing I have to fix is vi's behavior of wanting to go into visual mode ever time I try to select something and vi's refusal to paste the clipboard in insert mode using the middle mouse button. I know this must be a basic configuration setting somewhere? I've looked for /etc/vimrc and ~/.vimrc but all I found was ~/.viminfo and that didn't help.
So... hoping not to have to reinvent the wheel, where is this setting hiding??
OK, so far I have found that shift-insert will work with my 'top' insert key on my laptop, but I would still like to find this setting. Thanks. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
David C. Rankin wrote:
Listmates,
One thing I have to fix is vi's behavior of wanting to go into visual mode ever time I try to select something and vi's refusal to paste the clipboard in insert mode using the middle mouse button. I know this must be a basic configuration setting somewhere? I've looked for /etc/vimrc and ~/.vimrc but all I found was ~/.viminfo and that didn't help.
So... hoping not to have to reinvent the wheel, where is this setting hiding??
set mouse-=a -- Ionut
Biru Ionut wrote:
David C. Rankin wrote:
Listmates,
One thing I have to fix is vi's behavior of wanting to go into visual mode ever time I try to select something and vi's refusal to paste the clipboard in insert mode using the middle mouse button. I know this must be a basic configuration setting somewhere? I've looked for /etc/vimrc and ~/.vimrc but all I found was ~/.viminfo and that didn't help.
So... hoping not to have to reinvent the wheel, where is this setting hiding??
set mouse-=a
Thanks Biru, That works great for a single session, but how/where do I make the change permanent? -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
What about ~/.vimrc ??
Marco wrote:
What about ~/.vimrc ??
Dunno?? That's what I was looking for to begin with, but not finding any and not finding a global /etc/vimrc, I am still looking for the place this information is stored so I can change it globally. There isn't a chance these things were set at compile time is there?? -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
David C. Rankin wrote:
Marco wrote:
What about ~/.vimrc ??
Dunno??
That's what I was looking for to begin with, but not finding any and not finding a global /etc/vimrc, I am still looking for the place this information is stored so I can change it globally.
There isn't a chance these things were set at compile time is there??
take a look at /usr/share/vim/. any global settings should be there afaik
Hubert Grzeskowiak wrote:
David C. Rankin wrote:
Marco wrote:
What about ~/.vimrc ??
Dunno??
That's what I was looking for to begin with, but not finding any and not finding a global /etc/vimrc, I am still looking for the place this information is stored so I can change it globally.
There isn't a chance these things were set at compile time is there??
take a look at /usr/share/vim/. any global settings should be there afaik
(smacks self) Found it: /etc/virc: " In many terminal emulators the mouse works just fine, thus enable it. "if has('mouse') " set mouse=a "endif Done -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
On Tue, April 21, 2009 10:14, David C. Rankin wrote:
So... hoping not to have to reinvent the wheel, where is this setting hiding??
Seems to be a bug in the weird packaging of vim in Arch, no idea why. Since it works if you install vim and start vim with vim and not vi. The fucked up and out of date vim package was mentioned on this list a while ago. Thomas
On Tue, Apr 21, 2009 at 10:26 AM, Thomas Bohn <thomas@bohnomat.de> wrote:
On Tue, April 21, 2009 10:14, David C. Rankin wrote:
So... hoping not to have to reinvent the wheel, where is this setting hiding??
Seems to be a bug in the weird packaging of vim in Arch, no idea why. Since it works if you install vim and start vim with vim and not vi.
The fucked up and out of date vim package was mentioned on this list a while ago.
This isn't a bug. It's a vim setting. Biru already answered the question
On Tue, April 21, 2009 17:34, Aaron Griffin wrote:
This isn't a bug. It's a vim setting. Biru already answered the question
The bug is IIRC that vi doesn't use .vimrc but .virc. So vi behaves different from vim even though it is vim. Thomas
On Tue, April 21, 2009 17:45, Thomas Bohn wrote:
The bug is IIRC that vi doesn't use .vimrc but .virc. So vi behaves different from vim even though it is vim.
Message-ID ea09a6380903190801n31f79e4j950d0d4e0693ac36@mail.gmail.com from March 19, 2009. Thomas
participants (6)
-
Aaron Griffin
-
Biru Ionut
-
David C. Rankin
-
Hubert Grzeskowiak
-
Marco
-
Thomas Bohn