In a new Linux system installation I'm presented a Vim 9 version.
It seems to be completely incompatible with the various releases
that I used before.
When I was looking on the net for some older release I got always
directed to version 9, though. (I'm obviously missing something?)
Can someone provide a link to some Vim release where modelines and
all the other things work as in former (pre-Lua or whatever) times?
Some source code tar-ball would be okay. - Thanks.
Or is there some other simple way to make Vim 9 behave like earlier
versions concerning the configuration files and user settings?
PS: How did other Vim users perceive those changes in Vim releases?
(I'm just curious.)
In comp.editors, Janis Papanagnou <janis_papanagnou+ng@hotmail.com>wrote:
sinceIn a new Linux system installation I'm presented a Vim 9 version.
It seems to be completely incompatible with the various releases
that I used before.
I'm using vim 9.1.1696 today and not noticing any difference of note
7.x days. Clearly our usage is different.
When I was looking on the net for some older release I got always
directed to version 9, though. (I'm obviously missing something?)
Pick a tag, any tag:
https://github.com/vim/vim/tags
I have not poked around much, but there seems to be every patch from 7.0
on as a tag.
git clone https://github.com/vim/vim && cd vim
git checkout v8.2.2121
./configure [ OPTIONS ] && make
Can someone provide a link to some Vim release where modelines and
all the other things work as in former (pre-Lua or whatever) times?
Some source code tar-ball would be okay. - Thanks.
Modelines? That's a touchy subject since modelines have been subject to
many security patches over the years. I don't use modelines much, but
have not noticed a change. I think my usage is limited to setting
tabstops and case insensitive search in some files.
Or is there some other simple way to make Vim 9 behave like earlier
versions concerning the configuration files and user settings?
The verbose :version output will tell you the compile time
configuration. Here's what Ubuntu 22.04.5 LTS reports for :version :
[...]
PS: How did other Vim users perceive those changes in Vim releases?
(I'm just curious.)
Like I said, I've been using vim 9 for a while and don't notice
differences. I prefer a mostly vi compatible vim experience, however.
[ Sorry for the response per email, Eli. - I'm not used to my
new system environment, and it's not yet set up completely. ]
Or I was probably just confused about the default behavior in
my clean new environment and about the error messages that I
provoked with my tries to reestablish my previous configuration.
Modelines? That's a touchy subject since modelines have been subject toI don't see (and certainly never noticed) any security issues
many security patches over the years. I don't use modelines much, but
have not noticed a change. I think my usage is limited to setting
tabstops and case insensitive search in some files.
with those, though. But I'm anyway not using things (like script
code) beyond some elementary settings.
Like I said, I've been using vim 9 for a while and don't noticeCurious about 'compatible'...
differences. I prefer a mostly vi compatible vim experience, however.
As I understand it you don't get any Vim feature with that?
So you're actually just using old "Vi" functionality? (With
Vi's old bugs fixed, I suppose.)
That's interesting. While I find that old Vi contributed most
of what's basically the actual "Vim experience", but I also
think that Vim (Bram) managed to extend it sensibly within the
"Vi philosophy". (I like a lot of Vim's features and I'm using
not all but quite some that I wouldn't want to miss.)
In comp.editors, Janis Papanagnou replied to me:
[ Sorry for the response per email, Eli. - I'm not used to my
new system environment, and it's not yet set up completely. ]
Usenet is not realtime. Slow is fine. Not necessary to post and email a response, and doing so without mentioning it is annoying.
...
Modelines change settings in your editor. When a modeline comes from a
file you didn't write, the changes may be unpleasant. [...]
Like I said, I've been using vim 9 for a while and don't noticeCurious about 'compatible'...
differences. I prefer a mostly vi compatible vim experience, however.
As I understand it you don't get any Vim feature with that?
So you're actually just using old "Vi" functionality? (With
Vi's old bugs fixed, I suppose.)
No. Compatible means that most everything vi does, [...]
[...] But things that would be no-ops, errors or
undefined behavior in vi, those can still work vim-style.
Some notable examples that I use regularly:
* The g family of commands, like gq<movement> to reformat text. The
"g" key is unassigned in vi
* Similarly ctrl-a / ctrl-x number increment / decrement
* Whole word search with # and * (but I remap the * to _)
[...]
[...]
There are many Bram extensions I don't get a lot of value from,
like vimscript,
syntax highlighting,
gvim, mouse integration,
and colors in my editor (eg search highlighting).
But there are good things too, as I mentioned above. [...]
In a new Linux system installation I'm presented a Vim 9 version.
It seems to be completely incompatible with the various releases
that I used before.
When I was looking on the net for some older release I got always
directed to version 9, though. (I'm obviously missing something?)
Can someone provide a link to some Vim release where modelines and
all the other things work as in former (pre-Lua or whatever) times?
Some source code tar-ball would be okay. - Thanks.
Or is there some other simple way to make Vim 9 behave like earlier
versions concerning the configuration files and user settings?
Janis
PS: How did other Vim users perceive those changes in Vim releases?
(I'm just curious.)
* Similarly ctrl-a / ctrl-x number increment / decrementOccasionally it's useful. - Mind surprises, though, e.g. when
trying to increment the month or day component of an ISO date!
(Been there.)
But very useful also if you want to add a certain offset, say 7,
to many fields, '7' 'Ctrl-A' then move to other places and just
repeat (with '.').
There are many Bram extensions I don't get a lot of value from,I do no scripting in Vim.
like vimscript,
and colors in my editor (eg search highlighting).I'm ambivalent here; it's useful but the way it's implemented isn't
very appealing in some cases.
In comp.editors, Janis Papanagnou replied to me:
Occasionally it's useful. - Mind surprises, though, e.g. whenThis sounds like you would benefit from setting nrformats.
trying to increment the month or day component of an ISO date!
default: nrformats=bin,octal,hex
0b1011 >> ctrl-a >> 0b1100
001357 >> ctrl-a >> 001360
0xfeed >> ctrl-a >> 0xfeee
456789 >> ctrl-a >> 456790
empty: nrformats=
0b1011 >> ctrl-a >> 1b1011
001357 >> ctrl-a >> 001358
0xfeed >> ctrl-a >> 1xfeed
456789 >> ctrl-a >> 456790
In each case, cursor was on first non-blank character. When it is blank,
only decimal numbers are recognized.
Or I was probably just confused about the default behavior in
my clean new environment and about the error messages that I
provoked with my tries to reestablish my previous
configuration.
The Traditional Vi (easy to build yourself!)--
<https://ex-vi.sourceforge.net/>
nvi2: <https://github.com/lichray/nvi2>
Otherwise, it's just a matter of Vim's defaults.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 54 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 14:03:27 |
| Calls: | 742 |
| Files: | 1,218 |
| D/L today: |
3 files (2,681K bytes) |
| Messages: | 183,733 |
| Posted today: | 1 |