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

Re: LESS for reading, and VI for editing, but not working anymore



On Fri, 01 Jul 2005 14:14:58 +0200
Sebastian Haglund <bosen@home.se> wrote:

> On Fri, 2005-07-01 at 14:00 +0200, Benedek Frank wrote:
> > Hi
> > 
> > Always, when I read a file, I type for example
> > 
> > less /etc/acpi/acpi
> > 
> > And in LESS,  I can press "v" and I will get into vi for editing. It
> > was very fne upuntil now, but nowdays I was removing quite a few
> > packages, and suddenly when I press "v" inside "less" I will get
> > mc's (Midnight Commander) editor, which is the blue screen. I really
> > prefer hi the real good old "vi" for editing. How can I put it back?
> > By the way, "vi" is still installed (nvi) and I can execute it like
> > 
> > vi /etc/acpi/acpi
> > 
> > Why less wont use vi as it's editor anymore?
> 
> >From the less manpage:
> 
> 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  nei- ther  VISUAL  nor EDITOR is defined.  See also
>        the discussion of LESSEDIT under the section on PROMPTS below.
> 
> 
> Check your VISUAL and EDITOR environment variables.
> 
> /Sebastian
> 
> 

Here are all my variables, generated by "env". I dont see those in
there, but VI still wont load from less.

HZ=100
LINGUAS=en
SHELL=/bin/bash
TERM=rxvt
WINDOWID=16777218
LC_NUMERIC=C
HUSHLOGIN=FALSE
USER=ben
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=4
0;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=
01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;3
1:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01
;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=0
1;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov
=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl
=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:
MAIL=/var/mail/ben
PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games LC_MESSAGES=C
LC_COLLATE=ja_JP
PWD=/
XMODIFIERS=@im=kinput2
LANG=ja_JP
COLORFGBG=0;15
SHLVL=5
HOME=/home/ben
LANGUAGE=en
LOGNAME=ben
DISPLAY=:0.0
COLORTERM=rxvt-xpm
XAUTHORITY=/home/ben/.Xauthority
_=/usr/bin/env
OLDPWD=/etc/jogdiald


Thanks

Benedek
> 
> -- 
> To UNSUBSCRIBE, email to debian-laptop-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> 

> 
> 



Reply to: