[OT] "strict" VI

S

Shuo Xiang

Greetings:

Sorry for posting this seemingly off topic post but I was not too sure
which Linux group I send it to...

Is there a "strict" (prudish) VI editor for Linux? My school uses Sun
Solaris and the VI in there won't even interpret the directional keys
correctly if you are in "editing" instead of "command" mode. But I
have found that the rules in ELVIS and VIM of Linux to be far more
laxing, to such a degree that it promotes bad editing behaviours that
when translated to the Solaris environment will start dumping garbage
to screen. So I'm wondering if there is a "Solaris-ish" VI editor
clone for Linux that I can use so I won't indulge in my bad habits.

Regards,

Shuo Xiang
 
A

Andreas Kahari

Greetings:

Sorry for posting this seemingly off topic post but I was not too sure
which Linux group I send it to...

Why a Linux group? Vi is available on all operating systems
in existance, in one incarnation or another. What I wonder is
why you chose this group and not a group on the topic of, say,
amateur radio or cooking.

There is a comp.unix.misc group, and I'll bet there's a group
for text editors as well somewhere, if not a Vi group.

Try nvi. Use google. Read your manual about the -C flag (if
your vi is really vim).
 
R

Richard Delorme

Shuo Xiang a écrit :
Greetings:

Sorry for posting this seemingly off topic post but I was not too sure
which Linux group I send it to...

Is there a "strict" (prudish) VI editor for Linux? My school uses Sun
Solaris and the VI in there won't even interpret the directional keys
correctly if you are in "editing" instead of "command" mode. But I
have found that the rules in ELVIS and VIM of Linux to be far more
laxing, to such a degree that it promotes bad editing behaviours that
when translated to the Solaris environment will start dumping garbage
to screen. So I'm wondering if there is a "Solaris-ish" VI editor
clone for Linux that I can use so I won't indulge in my bad habits.

http://ex-vi.berlios.de/
 
C

Christopher Benson-Manica

Shuo Xiang said:
Sorry for posting this seemingly off topic post but I was not too sure
which Linux group I send it to...
Is there a "strict" (prudish) VI editor for Linux? My school uses Sun

You probably want comp.editors or somesuch. Also check the command line
options for VI/VIM - specifically -v, if you haven't tried that already
(assuming the Linux and Solaris command-line options are similar).
 
D

Default User

Shuo said:
Greetings:

Sorry for posting this seemingly off topic post

"Seemingly"? How about completely off-topic?
but I was not too sure which Linux group I send it to...

So you decide instead to send it to a group that has nothing to do with
Linux? Brilliant.




Brian Rodenborn
 
D

Dave Vandervies

Greetings:

Sorry for posting this seemingly off topic post but I was not too sure
which Linux group I send it to...

Is there a "strict" (prudish) VI editor for Linux? My school uses Sun
Solaris and the VI in there won't even interpret the directional keys
correctly if you are in "editing" instead of "command" mode. But I
have found that the rules in ELVIS and VIM of Linux to be far more
laxing, to such a degree that it promotes bad editing behaviours that
when translated to the Solaris environment will start dumping garbage
to screen. So I'm wondering if there is a "Solaris-ish" VI editor
clone for Linux that I can use so I won't indulge in my bad habits.

If you'd asked this in any of:
comp.unix.misc
comp.unix.questions
comp.os.linux.help
comp.os.linux.misc
uw.linux
comp.editors
(and probably a few more that I didn't think to look for) they'd've told
you that nvi isn't a bad choice, and that vim has a "compatible" mode,
and probably a few more things that it's unreasonable to expect posters
in comp.lang.c to know about.

If you'd asked this in uw.mfcf.questions, you'd've been told that vim
is available in the undergrad environment, so there's no need to use an
editor you're not familiar with anyways.

So what's your excuse for posting this to a newsgroup where you know it's
off-topic ("seemingly"?) instead of taking the time to look for the right
newsgroup (or, for that matter, look for an appropriate vi yourself)?


dave
(And don't get me started on confusing sloppy-user problems with
sloppy-program problems)
 
M

Micah Cowan

Greetings:

Sorry for posting this seemingly off topic post but I was not too sure
which Linux group I send it to...

Considering this is not a Linux, or even UNIX group, this is
*waaay* off-topic. Why not try posting to a UNIX or Linux group?

Even with an apology, posting something this blatantly off-topic
is still not nice.

-Micah
 
D

Dan Pop

In said:
Considering this is not a Linux, or even UNIX group, this is
*waaay* off-topic. Why not try posting to a UNIX or Linux group?

Even with an apology, posting something this blatantly off-topic
is still not nice.

Did you expect any topical content in a post tagged [OT]?

Occasionally, people get confused. Much more important than any
apology is the [OT] tag in the subject line, in such cases. The question
really belongs to comp.editors.

Dan
 
D

Dan Pop

In said:
Is there a "strict" (prudish) VI editor for Linux? My school uses Sun
Solaris and the VI in there won't even interpret the directional keys
correctly if you are in "editing" instead of "command" mode.

A really strict vi wouldn't allow them in command mode, either: you're
supposed to use h j k l for this purpose :)
But I
have found that the rules in ELVIS and VIM of Linux to be far more
laxing, to such a degree that it promotes bad editing behaviours that
when translated to the Solaris environment will start dumping garbage
to screen. So I'm wondering if there is a "Solaris-ish" VI editor
clone for Linux that I can use so I won't indulge in my bad habits.

Of all the Unices in current use, it is only Solaris that is still
providing a vi based on an ancient BSD implementation, all the others
use SYSV-style vi's that handle the cursor keys in input mode. It's a
bit tricky, because these keys generate a character sequence starting
with ESC, which normally means: quit input mode, hence the Solaris
vi behaviour. The workaround used by modern vi's (well, it's not really
vi, but the underlying curses library) is to wait some time after an
ESC character: if nothing else comes, it was a genuine, user pressed,
ESC key, otherwise it was a terminal generated escape sequence. It
turns out that Bill Joy wasn't very inspired when he chose the ESC
key for quitting input mode...

The most convenient solution is to take one of the open source vi
implementations (vim seems to be the default Linux vi) and build it on
your Solaris system(s), together with the ncurses library. So,
instead of making Linux editing as inconvenient as Solaris editing,
you can make Solaris editing as convenient as Linux editing.

Dan
 
C

CBFalconer

Dan said:
.... snip ...

The most convenient solution is to take one of the open source vi
implementations (vim seems to be the default Linux vi) and build
it on your Solaris system(s), together with the ncurses library.
So, instead of making Linux editing as inconvenient as Solaris
editing, you can make Solaris editing as convenient as Linux
editing.

And you can also get vim implemented for Windoze use, making it a
pretty universal system. If only it didn't have modes :-[
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top