Unix Technical Forum

VI question

This is a discussion on VI question within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> This is kind of a newbie inquiry. Elvis is the default vi editor with slackware. Is this because it ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 03:44 PM
Ed LaBonte
 
Posts: n/a
Default VI question

This is kind of a newbie inquiry. Elvis is the default vi editor with
slackware. Is this because it has some advantages over vim or is it
because it is closer to the original vi? What are its advantages over vim
(if any)?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 03:44 PM
NeoSadist
 
Posts: n/a
Default Re: VI question

Ed LaBonte wrote:

> This is kind of a newbie inquiry. Elvis is the default vi editor with
> slackware. Is this because it has some advantages over vim or is it
> because it is closer to the original vi? What are its advantages over vim
> (if any)?


It's not the default: you can run plain "vi".
Text editors are all about preference anyways....

--
BOFH Excuse #225: It's those computer people in X {city of world}. They
keep stuffing things up.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 03:44 PM
Blumf
 
Posts: n/a
Default Re: VI question

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

NeoSadist wrote:

> Ed LaBonte wrote:
>
>> This is kind of a newbie inquiry. Elvis is the default vi editor with
>> slackware. Is this because it has some advantages over vim or is it
>> because it is closer to the original vi? What are its advantages over vim
>> (if any)?

>
> It's not the default: you can run plain "vi".
> Text editors are all about preference anyways....


$ ls -l `which vi`
lrwxrwxrwx 1 root root 5 2004-07-10 18:41 /usr/bin/vi -> elvis

IIRC the true vi program is not FOSS, just the specs for it are open (part
of the POSIX standard, again all IIRC), so we have to rely on clones like
vim and elvis.

As for why elvis is the default and not vim, I'd guess the elvis package is
smaller than vim.

Blumf

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

iD8DBQFBUVSvMid3IcxolsoRAuZMAJ0VgTNuRzlJV4eKxhLhv6 Gmp0mthQCeLkLy
YqyjVJKt+MGk6mCaaiI1664=
=Egxd
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 03:44 PM
Thomas Ronayne
 
Posts: n/a
Default Re: VI question

Ed LaBonte wrote:

>This is kind of a newbie inquiry. Elvis is the default vi editor with
>slackware. Is this because it has some advantages over vim or is it
>because it is closer to the original vi? What are its advantages over vim
>(if any)?
>
>

If you're interested, the "real" vi program is available at Gunnar
Ritter's Software for UNIX page --
http://omnibus.uni-freiburg.de/~gritter. It's the source for ex and vi.
You should be aware, however, of the disclaimer:

"Compared to most of its many clones, the original vi is a rather
small program (~120 KB code on i386) just with its extremely
powerful editing interface, but lacking fancy features like multiple
undo, multiple screens or syntax highlighting. In other words, it is
a typical Unix program that does exactly what it should and nothing
more. I intend to preserve this style in maintaining my port, except
for changes to achieve POSIX.2 standards compliance, features in the
SVR4 versions of vi, and, of course, bug fixes."

Gunnar also provides the source for some other interesting utilities.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 03:44 PM
Jeffrey Froman
 
Posts: n/a
Default Re: VI question

Ed LaBonte wrote:

> Elvis is the default vi editor with
> slackware. Is this because it has some advantages over vim or is it
> because it is closer to the original vi? What are its advantages over vim
> (if any)?


There are several programs that use your "default" editor (as set in your
EDITOR or VISUAL environment variables.) Some of these, like crontab or
vipw, have problems with the way vim handles permissions on temporary
files. So if you're a vi user, it's better to use elvis (or the "vi"
symlink to it) as your default editor. I have heard of similar problems
with emacs, by the way.

Other than that, I would always opt for the full-featured vim for my editing
needs.

Jeffrey
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 03:44 PM
HJohnson
 
Posts: n/a
Default Re: VI question

Ed LaBonte wrote:
> This is kind of a newbie inquiry. Elvis is the default vi editor with
> slackware. Is this because it has some advantages over vim or is it
> because it is closer to the original vi? What are its advantages over vim
> (if any)?


Patrick has been packaging elvis with his distro for longer than I can
remember. Only in the later Slackware releases (just exactly when, I
can't remember) has he included vim. But he still symlinks vi to elvis.
Therefore, elvis reigns as being here first.

--

humjohn AT aerosurf DOT net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 03:44 PM
Mario Berger
 
Posts: n/a
Default Re: VI question

<kinda-OT-troll-mode>

nano forever

</kinda-OT-troll-mode>

~Mik

--
Top-Bottom Programming never gets you where you wanted to go.
Bottom-Top Programming gets you where you never wanted to go.

while not life:
sleep((sleep.normal_time - 5h)); eat(mode=fast); pc_mainloop()
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-19-2008, 03:44 PM
Joost Kremers
 
Posts: n/a
Default Re: VI question

Mario Berger wrote:
> nano forever


alt.religion.emacs

'nuf said.

--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-19-2008, 03:45 PM
Mark Hill
 
Posts: n/a
Default Re: VI question

On Wed, 22 Sep 2004 10:04:40 GMT,
Ed LaBonte <ed@NOSPAMlabonte.com> wrote:
> Elvis is the default vi editor with
> slackware. Is this because it has some advantages over vim or is it
> because it is closer to the original vi?


I'd imagine it's because Elvis is closer to the original vi, and
therefore more what a new user would expect from typing 'vi'.

> What are its advantages over vim
> (if any)?


In short, it has more features, which you might or might not find
useful. A summary can be found here:

<http://vimdoc.sourceforge.net/vimfaq.html> (Question 1.4)

--
Mark Hill
Email (Just for Fun):
echo zbp.yvnzt.yyvuez | rot13 | rev | sed s@\\.@\\@@
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-19-2008, 03:49 PM
notbob
 
Posts: n/a
Default Re: VI question

On 2004-09-22, Blumf <blumf@hot.mail.com> wrote:

> $ ls -l `which vi`
> lrwxrwxrwx 1 root root 5 2004-07-10 18:41 /usr/bin/vi -> elvis


Wow. What a neat command. Like a shortcut pipe. Works from anywhere. But,
the first time I tried it with regular apostrophes, nada. But with the left
hand apostrophe, voila! Why does this work. ...or at least point me to a
read. man bash?

nb
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:59 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com