crontab -e

I have a new install of Etch. When I issue the command
#crontab -e
I get the nano editor. I would really rather use the vim editor.
How do I change what gets used?

--
Raquel
============================================================
If you would be a real seeker after truth, it is necessary that at
least once in your life you doubt, as far as possible, all things.
--Rene Descartes

--

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

crontab -e

Hi Raquel.

Raquel, 04.09.2007 02:22:
> I have a new install of Etch. When I issue the command
> #crontab -e
> I get the nano editor. I would really rather use the vim editor.
> How do I change what gets used?

Set the EDITOR environment variable in the config file of your preferred shell.
(~/.bashrc for Bash)

Regards, Mathias

--
debian/rules

crontab -e

> Raquel, 04.09.2007 02:22:
> > I have a new install of Etch. When I issue the command
> > #crontab -e
> > I get the nano editor. I would really rather use the vim editor.
> > How do I change what gets used?
>
> Set the EDITOR environment variable in the config file of your preferred shell.
> (~/.bashrc for Bash)

Or, if you want to change the system-wide default, run (as root)

] update-alternatives --config editor

Regards,

Jan

crontab -e

On Tue, 4 Sep 2007 02:32:39 +0200
"Jan C. Nordholz" wrote:

> > Raquel, 04.09.2007 02:22:
> > > I have a new install of Etch. When I issue the command
> > > #crontab -e
> > > I get the nano editor. I would really rather use the vim
> > > editor. How do I change what gets used?
> >
> > Set the EDITOR environment variable in the config file of your
> > preferred shell. (~/.bashrc for Bash)
>
> Or, if you want to change the system-wide default, run (as root)
>
> ] update-alternatives --config editor
>
>
> Regards,
>
> Jan
>

Thank you! This worked like a charm.

--
Raquel
============================================================
Constitutions should consist only of general provisions; the reason
is that they must necessarily be permanent, and that they cannot
calculate for the possible change of things.
--Alexander Hamilton

--

crontab -e

On Tue, 04 Sep 2007 02:24:16 +0200
Mathias Brodala wrote:

> Hi Raquel.
>
> Raquel, 04.09.2007 02:22:
> > I have a new install of Etch. When I issue the command
> > #crontab -e
> > I get the nano editor. I would really rather use the vim
> > editor. How do I change what gets used?
>
> Set the EDITOR environment variable in the config file of your
> preferred shell. (~/.bashrc for Bash)
>
>
> Regards, Mathias
>
> --
> debian/rules
>
>

Hmmm, I thought it was configured using the update-alternatives
system. However, when I run (as root):
#update-alternatives --set editor /usr/bin/vim
I get an error:
#update-alternatives: Cannot find alternative `/usr/bin/vim'.

--
Raquel
============================================================
Constitutions should consist only of general provisions; the reason
is that they must necessarily be permanent, and that they cannot
calculate for the possible change of things.
--Alexander Hamilton

--

crontab -e

On Mon, 3 Sep 2007 17:38:03 -0700
Raquel wrote:

> Hmmm, I thought it was configured using the update-alternatives
> system. However, when I run (as root):
> #update-alternatives --set editor /usr/bin/vim
> I get an error:
> #update-alternatives: Cannot find alternative `/usr/bin/vim'.

Use "#update-alternatives --set editor /usr/vim/vim.basic".

Alternatively, use "#update-alternatives --config editor" to get the
interactive configuration.

Graham

--

crontab -e

On Mon, Sep 03, 2007 at 05:38:03PM -0700, Raquel wrote:
> On Tue, 04 Sep 2007 02:24:16 +0200
> Mathias Brodala wrote:
> Hmmm, I thought it was configured using the update-alternatives
> system. However, when I run (as root):
> #update-alternatives --set editor /usr/bin/vim
> I get an error:
> #update-alternatives: Cannot find alternative `/usr/bin/vim'.

This just means that vim isn't installed. Run 'apt-get install vim' and
it should work.

--

crontab -e

On Wed, 5 Sep 2007, Maarten Verwijs wrote:

> On Mon, Sep 03, 2007 at 05:38:03PM -0700, Raquel wrote:
>> On Tue, 04 Sep 2007 02:24:16 +0200
>> Mathias Brodala wrote:
>> Hmmm, I thought it was configured using the update-alternatives
>> system. However, when I run (as root):
>> #update-alternatives --set editor /usr/bin/vim
>> I get an error:
>> #update-alternatives: Cannot find alternative `/usr/bin/vim'.
>
> This just means that vim isn't installed. Run 'apt-get install vim' and
> it should work.
>

I'm guessing that /usr/bin/vim is really a symlink to the vim in
/etc/alternatives/vim. running update-alternatives --set editor
/usr/bin/vim.tiny or which ever vim you have installed would work.
Although, its probably just easier to just run update-alternatives
--config editor and select which one you want.

hth
Jeff

-+-
8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno.

--

crontab -e

On Mon, Sep 03, 2007 at 05:22:28PM -0700, Raquel wrote:
> I have a new install of Etch. When I issue the command
> #crontab -e
> I get the nano editor. I would really rather use the vim editor.
> How do I change what gets used?

Do you have an EDITOR environment variable set? The man page says that
it follows EDITOR or VISUAL if set. If not, it likely follows
sensible-editor which is part of the debian alternatives system.

Doug.

--

crontab -e

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/03/07 19:46, Douglas A. Tutty wrote:
> On Mon, Sep 03, 2007 at 05:22:28PM -0700, Raquel wrote:
>> I have a new install of Etch. When I issue the command
>> #crontab -e
>> I get the nano editor. I would really rather use the vim editor.
>> How do I change what gets used?
>
> Do you have an EDITOR environment variable set? The man page says that
> it follows EDITOR or VISUAL if set. If not, it likely follows
> sensible-editor which is part of the debian alternatives system.

vim not installed???

Who doesn't install vim?

- --
Ron Johnson, Jr.
Jefferson LA USA

Give a man a fish, and he eats for a day.
Hit him with a fish, and he goes away for good!

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG3s6US9HxQb37XmcRAoKCAJ9R/m6sVtgDV6NZu4JOBM04f7eNBgCgtV2J
BgHzJtc0zzjRbBflb6RdKs4=
=piww
-----END PGP SIGNATURE-----

--

crontab -e

On Wed, Sep 05, 2007 at 10:43:16AM -0500, Ron Johnson wrote:
> On 09/03/07 19:46, Douglas A. Tutty wrote:
> > On Mon, Sep 03, 2007 at 05:22:28PM -0700, Raquel wrote:
> >> I have a new install of Etch. When I issue the command
> >> #crontab -e
> >> I get the nano editor. I would really rather use the vim editor.
> >> How do I change what gets used?
> >
> > Do you have an EDITOR environment variable set? The man page says that
> > it follows EDITOR or VISUAL if set. If not, it likely follows
> > sensible-editor which is part of the debian alternatives system.
>
> vim not installed???
>
> Who doesn't install vim?

I didn't. Until I switched to mutt and went "shopping" for a mcedit
replacement ... so I ended up with vim.

Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

Syndicate content