Since the last update of vi the visual mode which usualy work in comand mode with "v" doesn't work anymore...
base vi from pkg ,before the update it worked for meIs this the port of vim or base's vi? I don't think it ever worked in base's vi.
Port or packages?
For vim it works for me (tried on 14.3 and 15.0) using quarterly packages vim-9.1.2050
I do not understand that. If I just install FreeBSD, with no packages at all, then there's a vi in base. No ports or packages involved at all. (Unless this is to do with 15.x and pkgbase?)base vi from pkg
i'm confused too , maybe base has been updated via pkg ? I dont know but v command use to work I only use vi base I know it work before pkg upgrade but now it doesnt I used to use it to edit wireguard conf, now I get v isnt a commandI do not understand that. If I just install FreeBSD, with no packages at all, then there's a vi in base. No ports or packages involved at all. (Unless this is to do with 15.x and pkgbase?)
I don't think base vi has ever supported visual mode - visual mode comes from vim or similar.
I don't think it's my imagination e.g. https://hugodaniel.com/posts/vi-is-not-vim/ talks about there not being a visual mode in vi itself, you need vim or similar.
Have you pkgbasify'ed?i'm confused too , maybe base has been updated via pkg ? I dont know but v command use to work I only use vi base I know it work before pkg upgrade but now it doesnt I used to use it to edit wireguard conf, now I get v isnt a command
yes this is the only explanation that make sense, but I didn't make this alias my self .. anyway thanks for the help. I'm gonna close it now.I've definitely been confused when jumping onto a Linux box and getting vim features working in "base" vi but as kpedersen said above, that's because "base" vi in some Linux distros is actually vim. But on BSDs (OpenBSD and FreeBSD) vi is vi, and there's no visual command.
So maybe as JohnK suggests above you've had vi aliased to an installed vim or something like that?
if ( -x /usr/local/bin/vim ) then
setenv EDITOR vim
alias vi vim
else
setenv EDITOR vi
endif