Is there a way to set that permanently in .vimrc or /etc/vimrc? Because that bugs me every time I want to paste code into a vim session.
That's called a "bug that's become a feature" or "broken as coded".
I think it was an intentional but bad design decision made by the developers.DougieLawson wrote: ↑Thu May 28, 2020 5:04 pmThat's called a "bug that's become a feature" or "broken as coded".
/usr/share/vim/vim81/defaults.vim contains this block:" Vim will load $VIMRUNTIME/defaults.vim if the user does not have a vimrc.
" This happens after /etc/vim/vimrc(.local) are loaded, so it will override
" any settings in these files.
" If you don't want that to happen, uncomment the below line to prevent
" defaults.vim from being loaded.
" let g:skip_defaults_vim = 1
Code: Select all
" In many terminal emulators the mouse works just fine. By enabling it you " can position the cursor, Visually select and scroll with the mouse. if has('mouse') set mouse=a endif
Thank you. That block of code is now a comment on my systems.
There's another puzzle, then, why local preferences don't take priority.
Code: Select all
" In many terminal emulators the mouse works just fine. By enabling " this option, however, you can break it. "if has('mouse') " set mouse=a "endif
I see what you did there.
If ^C means copy, then delete could mean ^C as in the original Unix terminal drivers. After that ^H could be used for delete and for help one could call 911.Heater wrote: ↑Fri May 29, 2020 2:49 amIn general though it drives me nuts that simple things like cut and paste work differently on every damn machine. Do you need Control-V or Shift-Control-V, or a right mouse click, or a middle button click or in the case of my Vim in LSW on Win 10 open a menu select "edit" then select "paste" or...
That's irrelevant if you're running in a cli or ssh session.
I strongly advise against editing /usr/share/vim/vim81/defaults.vim, that file will be automatically replaced whenever vim is updated (via apt upgrade).DougieLawson wrote: ↑Thu May 28, 2020 9:24 pmThank you. That block of code is now a comment on my systems.
apt has stuff in place to notice that and ask you to resolve it. I'm happy with the way I've hacked it.