View Single Post
  #3   (View Single Post)  
Old 14th February 2018
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 461
Default

Quote:
Originally Posted by beavers View Post
I have tried setting EDITOR and/or VISUAL in ~/.profile. This works fine; however, I do not want either of these parameters to take effect for the ksh command-line editing mode
Add this line to ~/.profile (if it does not already exist):
Code:
export ENV="${HOME}/.kshrc"
Then add this line to ~/.kshrc:
Code:
set -o emacs
This will allow you to set VISUAL to vim but keep ksh's stock editing mode.
__________________
Are you infected with Wetiko?
Reply With Quote