Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jan 2017 10:53:53 -0800
From:      Pete Wright <pete@nomadlogic.org>
To:        Alexander Kabaev <kabaev@gmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: recent change to vim defaults?
Message-ID:  <e479fa72-64cf-580d-903e-f3c04910aa75@nomadlogic.org>
In-Reply-To: <20170118132440.7e3739a2@kan>
References:  <trinity-955004bb-0ff4-45e5-bddd-8c5711b05213-1484582828788@msvc-mesg-gmx018> <d48791aa-4b2a-2046-3b09-9f4fd1e340e5@freebsd.org> <41760da4-a348-4063-8fec-14cf88c0ed05@typeapp.com> <46fb6a60-4fe5-7619-fced-a53ee4edf154@freebsd.org> <c1f16252-9fd1-5066-095b-85addd9ad490@nomadlogic.org> <20170118132440.7e3739a2@kan>

next in thread | previous in thread | raw e-mail | index | archive | help


On 1/18/17 10:24 AM, Alexander Kabaev wrote:
> On Wed, 18 Jan 2017 10:06:55 -0800
> Pete Wright <pete@nomadlogic.org> wrote:
>
>> On 1/18/17 10:01 AM, Julian Elischer wrote:
>>> On 18/01/2017 5:03 PM, Raimund Sacherer wrote:
>>>> I have to put mouse=v to get the behavior I am used to.
>>>>
>>>> Best
>>>
>>> doesn't really work for me.
>>>
>>> vim is still taking mouse events
>>>
>>
>> kinda feel like it we need a "classic" vim port that is from the v7.x
>> codebase since i suspect the changes to mouse behaviour in v8.x is
>> only the beginning of lots of suspect changes to the vim codebase :/
>>
>> i went through the code for vim the other day and couldn't figure out
>> a way to disable entering visual-mode via mouseclick as a compile
>> time option.  perhaps we should preserve the expected behaviour by
>> updating /usr/local/etc/vim/vimrc?
>>


I just applied this diff against my global vimrc file and it now 
disables the visual mode by default function:

$ diff -u vimrc.sample vimrc
--- vimrc.sample        2017-01-13 22:39:36.000000000 -0800
+++ vimrc       2017-01-18 10:51:48.020039000 -0800
@@ -3,10 +3,10 @@
  endif

  let g:is_posix = 1
-set nocompatible
  set bs=indent,eol,start
  set history=50
  set ruler
+set mouse-=a

  if &t_Co > 2 || has("gui_running")
         syntax on



I'm not %100 clear why it was setting "nocompatible" - but once I 
removed it it disabled visual-mode-on-mouse-click.  I'll be managing 
this on my systems via our cfg mgmt systems but it'd be super if this, 
or something similar, was the default.

-pete

-- 
Pete Wright
pete@nomadlogic.org
nomadlogicLA



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e479fa72-64cf-580d-903e-f3c04910aa75>