From owner-freebsd-current@freebsd.org Wed Jan 18 18:53:56 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 67F98CB60DC for ; Wed, 18 Jan 2017 18:53:56 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from vps-mail.nomadlogic.org (unknown [IPv6:2607:f2f8:a098::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 41D7E13C1 for ; Wed, 18 Jan 2017 18:53:56 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from LA-DGT-31327.local (nat-192-187-90-113.nat.tribpub.com [192.187.90.113]) by vps-mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id 650a5e5b TLS version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO; Wed, 18 Jan 2017 10:53:55 -0800 (PST) Subject: Re: recent change to vim defaults? To: Alexander Kabaev References: <41760da4-a348-4063-8fec-14cf88c0ed05@typeapp.com> <46fb6a60-4fe5-7619-fced-a53ee4edf154@freebsd.org> <20170118132440.7e3739a2@kan> Cc: freebsd-current@freebsd.org From: Pete Wright Message-ID: Date: Wed, 18 Jan 2017 10:53:53 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <20170118132440.7e3739a2@kan> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jan 2017 18:53:56 -0000 On 1/18/17 10:24 AM, Alexander Kabaev wrote: > On Wed, 18 Jan 2017 10:06:55 -0800 > Pete Wright 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