From nobody Fri Aug 12 01:52:37 2022 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M3msQ4DSMz4ZP5N for ; Fri, 12 Aug 2022 01:52:58 +0000 (UTC) (envelope-from web@3dresearch.com) Received: from smtpg.telissant.net (smtpg.telissant.net [104.225.1.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4M3msP4XG4z47gV for ; Fri, 12 Aug 2022 01:52:57 +0000 (UTC) (envelope-from web@3dresearch.com) Received: from sacada.3dresearch.com (localhost [127.0.0.1]) by smtpg.telissant.net (Postfix) with ESMTP id 4M3msN5b9dz1L3Ky for ; Thu, 11 Aug 2022 21:52:56 -0400 (EDT) X-Virus-Scanned: amavisd-new at telissant.net Received: from smtpg.telissant.net ([127.0.0.1]) by sacada.3dresearch.com (sacada.3dresearch.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EV3CtjagaJft for ; Thu, 11 Aug 2022 21:52:56 -0400 (EDT) Received: from elettra.3dresearch.com (unknown [71.112.242.141]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: elettra@sacada.3dresearch.com) by smtpg.telissant.net (Postfix) with ESMTPSA id 4M3msN2T2lz1L3Kx for ; Thu, 11 Aug 2022 21:52:56 -0400 (EDT) Received: from elettra.3dresearch.com (localhost [127.0.0.1]) by elettra.3dresearch.com (Postfix) with SMTP id 9206D78453 for ; Thu, 11 Aug 2022 21:52:55 -0400 (EDT) Date: Thu, 11 Aug 2022 21:52:37 -0400 From: Janos Dohanics To: FreeBSD Questions Subject: Re: editors/vim visual mode Message-Id: <20220811215237.ad4e755f27f6f1d926b706cb@3dresearch.com> In-Reply-To: <20220811150131.punmefsq6hsvvo4s@marcopolo.fdc.rm-rf.it> References: <20220811075458.5ff8cf3ed9b7b1c2107936e3@3dresearch.com> <20220811150131.punmefsq6hsvvo4s@marcopolo.fdc.rm-rf.it> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4M3msP4XG4z47gV X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of web@3dresearch.com designates 104.225.1.73 as permitted sender) smtp.mailfrom=web@3dresearch.com X-Spamd-Result: default: False [-0.80 / 15.00]; ENVFROM_SERVICE_ACCT(1.00)[]; FROM_SERVICE_ACCT(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.997]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+a:smtpg.telissant.net]; MIME_GOOD(-0.10)[text/plain]; ASN(0.00)[asn:36236, ipnet:104.225.1.0/24, country:US]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; ARC_NA(0.00)[]; TO_DN_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[3dresearch.com]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Thu, 11 Aug 2022 17:01:31 +0200 Gian Piero Carrubba wrote: > * [Thu, Aug 11, 2022 at 07:54:58AM -0400] Janos Dohanics: > [...] > >All of the above work without the setting "set mouse-=a" and all of > >them must have been installed not before March 4, 2021. > > > >Now I have upgraded vim-8.2.5052 to vim-9.0.0129. It displays the > >same behavior as vim-8.2.5052 did. > > Is the latter computer the only one in which you don't have a vimrc > file? Check $VIMRUNTIME/defaults.vim... > Hello Gian Piero, $ cat /usr/local/share/vim/vim82/defaults.vim | grep mouse | grep -v "\"" if has('mouse') set mouse=a set mouse=nvi $ cat /usr/local/share/vim/vim90/defaults.vim | grep mouse | grep -v "\"" if has('mouse') set mouse=a set mouse=nvi Look the same. The first example is from vim-console-8.2.2569. In all the computers I mentioned I do have my own .vimrc file, all of which have been copy/pasted or scp-d from some setup which I made years ago as follows: >From vim-console-8.2.2569: syntax off colo koehler set ruler set showmode set tabstop=8 autocmd BufRead,BufNewFile *.py syntax on autocmd BufRead,BufNewFile *.py set ai set nomodeline " Map time stamp to F3 imap =strftime("%Y%m%d%I%M") >From vim-8.2.5052/vim-9.0.0129: syntax off colo koehler set ruler set showmode set tabstop=8 autocmd BufRead,BufNewFile *.py syntax on autocmd BufRead,BufNewFile *.py set ai set nomodeline " Map time stamp to F3 imap =strftime("%Y%m%d%I%M") " Make copy/paste with mouse work correctly " and disable VISUAL mode (20220811) set mouse-=a -- Janos Dohanics