SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
v Invokes an editor to edit the current file being viewed. The editor is taken from the environment variable VISUAL if defined, or
EDITOR if VISUAL is not defined, or defaults to "vi" if neither VISUAL nor EDITOR is defined.
If it's not working then my guess would be that VISUAL is set but not exported and thus not available to less.
If there is no output from running "printenv | grep VISUAL" then you need to "export VISUAL". (echo expands both shell parameters and environment variables; printenv will print only the environment variables).
I have neither $VISUAL nor $EDITOR set on my system, but when I press "v" in less I get vim editor. In the /usr/bin directory I have changed the link so that vi points at vim not elvis.
##### MODIFICO
alias x="d -1|grep -v \~"
alias m0="mount -tiso9660 /dev/sr0 /mnt/cd0"
VIM="/usr/share/vim"
VISUAL="/usr/bin/vim"
alias r="fc -s"
alias date="date +\"%a %F %T\""
# ( sudo setsid /almacen/soft/z80/cpu/c_progs/kbd_monitor/kbd_monitor_2 /dev/input/event5 </dev/null &>/tmp/input.log & )
alias diff2="diff --minimal --context=1 --ignore-all-space"
This is from the backup copy of /etc/profile I keep among my personal data. That is why I was reluctant to add an 'export' in the line for VISUAL. But is is clear to me now that at some point after installation I
add the export token.
What is not clear is why vim does not have any problem with the VIM variable. vim obediently uses the vimrc I have in /usr/share/vim despite the fact that I do not export VIM. Anyways, the problem is now solved and the whys I'll leave them for a later time.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.