I am using Linux and the "vi" on my system(s) is not vim, it is nvi.
On 07.03.2024 14:40, Geoff Clare wrote:
I am using Linux and the "vi" on my system(s) is not vim, it is nvi.As I understand it nvi is just a reimplementation of classical vi.
I assume your Linux also supports vim. Is there a reason why you
prefer to use nvi?
(I'm really curious since there's so many fundamental and useful
features supported in vim that I surely don't want to miss them.
Even at times when I used both, vi and vim, in parallel depending
on the actual platform I was working on it wouldn't have occurred
to me to stay with vi (for consistency, or so) on a platform where
vim was available.)
On 07.03.2024 14:40, Geoff Clare wrote:
I am using Linux and the "vi" on my system(s) is not vim, it is nvi.
As I understand it nvi is just a reimplementation of classical vi.
I assume your Linux also supports vim. Is there a reason why you
prefer to use nvi?
On 2024-03-07 09:08, Janis Papanagnou wrote:
As I understand it nvi is just a reimplementation of classical vi.
I assume your Linux also supports vim. Is there a reason why you
prefer to use nvi?
* Nvi historically accurate for the most part. [...]
* Nvi's extensions do not conflict with historical/POSIX behaviour. In particular undo/redo in vim is a pet peeve of mine, because it never
works the way I expect it to work and I have lots of muscle memory WRT
vi. Keith's solution was more elegant IMO.
* vi macros. At the time of the POSIX standards, people had macros they relied on that needed to be portable. I had collected for MKS's testing
some interesting macro sets: vi solving a maze; Turing test; Towers Of
Hanoi, maybe others. vim broke these macros.
* Don't need plugins or syntax highlighting or what ever else vim adds
to the bloat. I worked without those features for years. For that
there are plenty of other editors to try that are not Vim (or Emacs).
* Vi already had lots of options; Vim seemed to go off the deep end.
Too many knobs means you're forever tweaking more than getting the job
done.
* Pretty sure Nvi is smaller (depending on build options) than a full
Vim install. Yes I still care about size, despite lots of memory and
disk with modern machines.
In comp.editors, Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
As I understand it nvi is just a reimplementation of classical vi.
I assume your Linux also supports vim. Is there a reason why you
prefer to use nvi?
Some people find vim does too much. I find I need to carefully pare back
some default configurations in vim to make it "sane" for me. With
settings like "scrolloff" set, I find it actually interferes with my
editing most of the time. But there are rare cases when I do want want
that. The same holds for syntax highlighting.
(I'm really curious since there's so many fundamental and useful
features supported in vim that I surely don't want to miss them.
Even at times when I used both, vi and vim, in parallel depending
on the actual platform I was working on it wouldn't have occurred
to me to stay with vi (for consistency, or so) on a platform where
vim was available.)
The default vi on Slackware has been elvis probably since the first
version of that distro. People who have been using that since forever
likely find vim quirky.
[...]
I turned to vim in the 2.x era because my editing style uncovered bugs
in the true vi I used on Solaris and HP-UX. I'm still using it now, but
the vim-isms I use are very slim compared to the vi original things I
use.
On 08.03.2024 00:54, Anthony Howe wrote:
On 2024-03-07 09:08, Janis Papanagnou wrote:
As I understand it nvi is just a reimplementation of classical vi.
I assume your Linux also supports vim. Is there a reason why you
prefer to use nvi?
* Nvi historically accurate for the most part. [...]
* Nvi's extensions do not conflict with historical/POSIX behaviour. In
particular undo/redo in vim is a pet peeve of mine, because it never
works the way I expect it to work and I have lots of muscle memory WRT
vi. Keith's solution was more elegant IMO.
Hmm.., okay.
Myself I had always been annoyed by Vi's single undo toggling. Vim's
multiple undo (and redo) is exactly what I want.
I've read somewhere that Vim even allows to navigate undo trees, but
that's something I never looked into.
* vi macros. At the time of the POSIX standards, people had macros they
relied on that needed to be portable. I had collected for MKS's testing
some interesting macro sets: vi solving a maze; Turing test; Towers Of
Hanoi, maybe others. vim broke these macros.
Oh, interesting and good to know. Have you any details what exactly
was the problem?
* Don't need plugins or syntax highlighting or what ever else vim adds
to the bloat. I worked without those features for years. For that
there are plenty of other editors to try that are not Vim (or Emacs).
I worked also colorless in the past for a long time; my stance was
that programs and data should be well structured and formatted and
legibly written so that syntax colors are not really necessary. I
certainly changed my habit and value that feature (and especially
in the implemented form using external syntax specification files
instead of builtin syntaxes, which contributes to non-bloat, IMO).
I also don't use Vim plugins.
* Vi already had lots of options; Vim seemed to go off the deep end.
Too many knobs means you're forever tweaking more than getting the job
done.
Okay, but you don't have to use them. I certainly use only a dozen
of all the options I can set. But whenever I missed a feature I
look into the docs and find a new one that's there to support me.
The huge list of options can certainly be frightening, I'm sure.
* Pretty sure Nvi is smaller (depending on build options) than a full
Vim install. Yes I still care about size, despite lots of memory and
disk with modern machines.
Yes, fair enough. That's certainly yet more an argument if you're
comparing Vi with Emacs whose executable was ever in the 8-10 MB
range where Vi, Vi-clones, and Vi-improvements were much smaller.
Thanks for the insights and your preferences explained.
Janis
Hmm.., okay.
Myself I had always been annoyed by Vi's single undo toggling. Vim's
multiple undo (and redo) is exactly what I want.
I've read somewhere that Vim even allows to navigate undo trees, but
that's something I never looked into.
* vi macros. At the time of the POSIX standards, people had macros they
relied on that needed to be portable. I had collected for MKS's testing
some interesting macro sets: vi solving a maze; Turing test; Towers Of
Hanoi, maybe others. vim broke these macros.
Oh, interesting and good to know. Have you any details what exactly
was the problem?
* Don't need plugins or syntax highlighting or what ever else vim adds
to the bloat. I worked without those features for years. For that
there are plenty of other editors to try that are not Vim (or Emacs).
I worked also colorless in the past for a long time; my stance was
that programs and data should be well structured and formatted and
legibly written so that syntax colors are not really necessary. I
certainly changed my habit and value that feature (and especially
in the implemented form using external syntax specification files
instead of builtin syntaxes, which contributes to non-bloat, IMO).
I also don't use Vim plugins.
* Vi already had lots of options; Vim seemed to go off the deep end.
Too many knobs means you're forever tweaking more than getting the job
done.
Okay, but you don't have to use them. I certainly use only a dozen
of all the options I can set. But whenever I missed a feature I
look into the docs and find a new one that's there to support me.
The huge list of options can certainly be frightening, I'm sure.
* Pretty sure Nvi is smaller (depending on build options) than a full
Vim install. Yes I still care about size, despite lots of memory and
disk with modern machines.
Yes, fair enough. That's certainly yet more an argument if you're
comparing Vi with Emacs whose executable was ever in the 8-10 MB
range where Vi, Vi-clones, and Vi-improvements were much smaller.
Thanks for the insights and your preferences explained.
On 07.03.2024 14:40, Geoff Clare wrote:
I am using Linux and the "vi" on my system(s) is not vim, it is nvi.
As I understand it nvi is just a reimplementation of classical vi.
I assume your Linux also supports vim. Is there a reason why you
prefer to use nvi?
* vi macros. At the time of the POSIX standards, people had macros
they relied on that needed to be portable. I had collected for MKS's testing some interesting macro sets: vi solving a maze; Turing test;
Towers Of Hanoi, maybe others. vim broke these macros.
On 07.03.2024 23:58, Eli the Bearded wrote:
Some people find vim does too much. I find I need to carefully pare backIt's unclear to me what you mean by "too much". I'm aware that Vim
some default configurations in vim to make it "sane" for me. With
settings like "scrolloff" set, I find it actually interferes with my
editing most of the time. But there are rare cases when I do want want
that. The same holds for syntax highlighting.
has a lot of new features but if I start it without changes I seem
to get a behavior like Vi; the only difference I recall is the 'u'
behavior to undo a single change (and toggle) in Vi, and to have
multiple undo-levels in Vim (that I certainly don't want to miss).
I can't say anything WRT the 'scrolloff' setting; its default value
is '0' on my system and that's how I recall Vi to behave. (I don't
recall that Vi had such an option in the first place, but my memory
on that setting detail is faint.)
The default vi on Slackware has been elvis probably since the firstI recall to have used Elvis decades ago for only a short period of
version of that distro. People who have been using that since forever
likely find vim quirky.
time. Have you an example for the "quirky feeling"?
wondering about it; was it so different from _Vi_? And given that I
read in the Wikipedia that _Vim_ was influenced by it I'd expected
that even adopted non-Vi features would have similarities then.)
Myself I consider the basic power of the Vi concept/philosophy already
as the primary incentive to use Vi. One difference on my part is that
over time I had constantly used more and more features of Vim
(and Vi).
Yet still only a fraction of what Vim provides.
Personally, as I use vim mostly for programming, the best feature is the ability to compile from inside vim and then automatically go to the errors to correct them.
I'm not sure how command-line editing works in vim, but in nvi it's wonderfully simple - after pressing : to get a command line, I just
press Esc and a small window opens at the bottom of the screen
containing the commands I've typed (with the cursor on the most
recent, at the bottom). I can use all the normal vi editing commands
in that window, except that Return executes the command on the current
line (and closes the window).
On 2024-03-07 22:59, Janis Papanagnou wrote:
In Nvi multiple undo /redo is possible, it just extends historical
behaviour in a way that doesn't conflict :
u . . . u . Undo 4 back, redo 2 forward.
I've read somewhere that Vim even allows to navigate undo trees, but
that's something I never looked into.
Never understood what an undo tree is vs a linear undo/redo would look
like. Linear undo history makes sense and just about every editor
supports it.
* vi macros. [...]
Oh, interesting and good to know. Have you any details what exactly
was the problem?
Ugh. That was like 1993. [...]
I worked also colorless in the past for a long time; my stance was
that programs and data should be well structured and formatted and
legibly written so that syntax colors are not really necessary.
Yep. I agree.
[...] Huge number of options is not
a uniquely vi issue. It plagues software in general and being able to satisfy many tastes, [...]
I think if you're going to clone an editor, you have to keep the
historical aspect of it, even if it is not perfect. Some extensions
might be nice, sometimes one goes a little overboard, kinda like how "NetHack" has everything and the kitchen sink (it has sinks) in a rogue
game.
On 08.03.2024 11:30, G wrote:
Personally, as I use vim mostly for programming, the best feature is the
ability to compile from inside vim and then automatically go to the errors >> to correct them.
Please correct me if I am wrong but I seem to recall that I've done that
with Vi already in the 1990's (before I got my hands on a Vim). (Faint memories suggest that there were three commands supporting the edit,
compile, fix cycle in Vi. Don't know whether Vim still use these or whether it has extended them.)
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 497 |
Nodes: | 16 (2 / 14) |
Uptime: | 15:02:07 |
Calls: | 9,784 |
Calls today: | 3 |
Files: | 13,748 |
Messages: | 6,187,485 |