[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: graphical file browser from command line



Eduardo M KALINOWSKI wrote:
Kevin Mark wrote:
In less, if you press 'v', it will open the file in VI, and then you can
view the file there.

Actually, it opens in an editor defined by the VISUAL or EDITOR environment variables (in that order), defaulting to vi if neither is set. In my system it starts emacs, for example.

Also, note from the man page:

 if an environment variable LESSEDIT is defined, it is used as  the
command  to  be executed when the v command is invoked.  The LESSEDIT
string is expanded in the same way as the prompt strings.  The default
value for LESSEDIT is:

            %E ?lm+%lm. %f

       Note  that  this  expands  to  the  editor name, followed by a +
and the line number, followed by the file name.  If your editor does not
accept the "+linenumber" syntax, or has other differences in invocation
syntax, the LESSEDIT variable can be changed to modify this default.







Reply to: