Date: Thu, 11 Aug 2022 21:52:37 -0400 From: Janos Dohanics <web@3dresearch.com> To: FreeBSD Questions <freebsd-questions@freebsd.org> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 11 Aug 2022 17:01:31 +0200 Gian Piero Carrubba <gpiero@rm-rf.it> 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 <F3> <C-R>=strftime("%Y%m%d%I%M")<CR> >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 <F3> <C-R>=strftime("%Y%m%d%I%M")<CR> " Make copy/paste with mouse work correctly " and disable VISUAL mode (20220811) set mouse-=a -- Janos Dohanics
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220811215237.ad4e755f27f6f1d926b706cb>