<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.nerdmage.ca/index.php?action=history&amp;feed=atom&amp;title=Fixing_vim</id>
	<title>Fixing vim - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nerdmage.ca/index.php?action=history&amp;feed=atom&amp;title=Fixing_vim"/>
	<link rel="alternate" type="text/html" href="https://wiki.nerdmage.ca/index.php?title=Fixing_vim&amp;action=history"/>
	<updated>2026-04-08T01:06:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://wiki.nerdmage.ca/index.php?title=Fixing_vim&amp;diff=186&amp;oldid=prev</id>
		<title>Bart: Created page with &quot;= VIM (&amp; fixing it on Debian) = (as installed on Debian) has mouse weirdness. Selecting text with the mouse automatically enters &#039;&#039;&#039;visual mode&#039;&#039;&#039;. This prevents useful things like using the mouse to copy/paste while editing in the terminal. (&#039;&#039;&#039;Visual Mode&#039;&#039;&#039; is stupid...)  ==== Solution ==== Either enter:  *&lt;code&gt;:set mouse-=a&lt;/code&gt;  during an editing session, or even better, put it (without the leading colon) in your &lt;code&gt;~/.vimrc&lt;/code&gt; file. (create the &lt;code&gt;.vim...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.nerdmage.ca/index.php?title=Fixing_vim&amp;diff=186&amp;oldid=prev"/>
		<updated>2022-01-03T19:38:06Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= VIM (&amp;amp; fixing it on Debian) = (as installed on Debian) has mouse weirdness. Selecting text with the mouse automatically enters &amp;#039;&amp;#039;&amp;#039;visual mode&amp;#039;&amp;#039;&amp;#039;. This prevents useful things like using the mouse to copy/paste while editing in the terminal. (&amp;#039;&amp;#039;&amp;#039;Visual Mode&amp;#039;&amp;#039;&amp;#039; is stupid...)  ==== Solution ==== Either enter:  *&amp;lt;code&amp;gt;:set mouse-=a&amp;lt;/code&amp;gt;  during an editing session, or even better, put it (without the leading colon) in your &amp;lt;code&amp;gt;~/.vimrc&amp;lt;/code&amp;gt; file. (create the &amp;lt;code&amp;gt;.vim...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= VIM (&amp;amp; fixing it on Debian) =&lt;br /&gt;
(as installed on Debian) has mouse weirdness. Selecting text with the mouse automatically enters &amp;#039;&amp;#039;&amp;#039;visual mode&amp;#039;&amp;#039;&amp;#039;. This prevents useful things like using the mouse to copy/paste while editing in the terminal. (&amp;#039;&amp;#039;&amp;#039;Visual Mode&amp;#039;&amp;#039;&amp;#039; is stupid...)&lt;br /&gt;
&lt;br /&gt;
==== Solution ====&lt;br /&gt;
Either enter:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;:set mouse-=a&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
during an editing session, or even better, put it (without the leading colon) in your &amp;lt;code&amp;gt;~/.vimrc&amp;lt;/code&amp;gt; file. (create the &amp;lt;code&amp;gt;.vimrc&amp;lt;/code&amp;gt; file if it&amp;#039;s not already there...)&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;vim ~/.vimrc&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 set mouse-=a&lt;br /&gt;
&lt;br /&gt;
If you tend to use vim via sudo a lot... (duh... Who doesn&amp;#039;t?)&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;sudo vim ~root/.vimrc&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Sadly, this seems to turn off the colour syntax hilighting.&lt;br /&gt;
&lt;br /&gt;
But!&lt;br /&gt;
&lt;br /&gt;
add&lt;br /&gt;
&lt;br /&gt;
 syntax on&lt;br /&gt;
&lt;br /&gt;
to the &amp;#039;&amp;#039;&amp;#039;.vimrc&amp;#039;&amp;#039;&amp;#039; files &amp;amp; it&amp;#039;s back.&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:SoftwareTools]]&lt;/div&gt;</summary>
		<author><name>Bart</name></author>
	</entry>
</feed>