Re: editors/vim visual mode
- In reply to: Gian Piero Carrubba : "Re: editors/vim visual mode"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 12 Aug 2022 01:52:37 UTC
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