Live data from Hacker News

Remove Ex-Mode from Neovim

github.com

31–40 of 123 posts

Re: Remove Ex-Mode from Neovim

#31
post #5

I've been using vim for 7 years and I've never even attempted to use this mode. Am I missing out?

You might be, if you write plugins for vim! But if you don't, then no, probably not. It's handy to test some arbitrary commands which might go into a vim script or, more likely for the average user of vim, your .vimrc file.

Re: Remove Ex-Mode from Neovim

#32
post #28
post #2

For those who, like me, had never heard of Ex-mode: https://en.wikibooks.org/wiki/Learning_the_vi_Editor/Vim/Mod...

"... similar to the command line mode ... Unlike the command-line mode you won't return to normal mode automatically ... enter ... by typing a Q in normal mode" So they have a mode you enter when pressing q (which quits many other programs) that you can't leave if you don't know the leave command? This is comedy gold. :D

It was in fact the original mode. vi was the visual mode for ex.

Re: Remove Ex-Mode from Neovim

#33
post #28
post #2

For those who, like me, had never heard of Ex-mode: https://en.wikibooks.org/wiki/Learning_the_vi_Editor/Vim/Mod...

"... similar to the command line mode ... Unlike the command-line mode you won't return to normal mode automatically ... enter ... by typing a Q in normal mode" So they have a mode you enter when pressing q (which quits many other programs) that you can't leave if you don't know the leave command? This is comedy gold. :D

Not "q", but "Q".

Actually, when entering Ex mode you get a little helpful message that says Type "visual" to go to Normal mode.

If you do press "q" though, you're in macro mode, and you don't get any helpful message that tells you that you have to press "q" another time to exit it.

Re: Remove Ex-Mode from Neovim

#34
post #33
post #28

Earlier quoted context omitted.

"... similar to the command line mode ... Unlike the command-line mode you won't return to normal mode automatically ... enter ... by typing a Q in normal mode" So they have a mode you enter when pressing q (which quits many other programs) that you can't leave if you don't know the leave command? This is comedy gold. :D

Not "q", but "Q". Actually, when entering Ex mode you get a little helpful message that says Type "visual" to go to Normal mode . If you do press "q" though, you're in macro mode, and you don't get any helpful message that tells you that you have to press "q" another time to exit it.

I see, thanks for the clarification :)

Vim always seems like magic to me. I always use nano/pico when I need to edit something in the command line.

Re: Remove Ex-Mode from Neovim

#35
post #28
post #2

For those who, like me, had never heard of Ex-mode: https://en.wikibooks.org/wiki/Learning_the_vi_Editor/Vim/Mod...

"... similar to the command line mode ... Unlike the command-line mode you won't return to normal mode automatically ... enter ... by typing a Q in normal mode" So they have a mode you enter when pressing q (which quits many other programs) that you can't leave if you don't know the leave command? This is comedy gold. :D

>you can't leave if you don't know the leave command?

Hah, for many that is Vim itself!

Re: Remove Ex-Mode from Neovim

#36
I have been using Ex mode for it's REPL like qualities while learning vimscript, it's a useful feature if you are writing vim plugins or doing complex search/replace operations.

Will a similar conversation happen with Replace mode? I use this mode less than Ex mode and it has a useful key bind (R) that could be recycled.

Re: Remove Ex-Mode from Neovim

#37
post #34
post #33

Earlier quoted context omitted.

Not "q", but "Q". Actually, when entering Ex mode you get a little helpful message that says Type "visual" to go to Normal mode . If you do press "q" though, you're in macro mode, and you don't get any helpful message that tells you that you have to press "q" another time to exit it.

I see, thanks for the clarification :) Vim always seems like magic to me. I always use nano/pico when I need to edit something in the command line.

Yeah, I remember when I was first learning Linux, I was pretty much thrown into the deep end with nobody to help me much. I got into vim to edit a text file, and was... completely lost at sea. I figured out how to install nano and have never touched another Linux text editor since.

Re: Remove Ex-Mode from Neovim

#38

Earlier quoted context omitted.

Throw the baby out with the bath water much?

Elaborate, please. (I've gone and elaborated on my own comment. I might have misworded my intent.)

Bram hasn't complained about their usage of the name (unlike the Standard Markdown fiasco). And as a Vim user what they're doing seems what Vim always wanted to do before Bram was sidetracked by other projects: they're making Vi Improved. A lot of the changes they're making seem to be redoing the Vim internals using 21st century software development practices (continuous integration: builds, tests, linting, refactoring, removing deprecated bits, etc).

I actually hope that Neovim is temporary and Bram can gracefully accept the Neovim code as the official Vim once Neovim is stable. And Vim can become "Legacy Vim", supporting modes and OSs Neovim doesn't support anymore. Vim itself does the same thing - it has downloads for older versions in order to support MS DOS, for example (I'm not 100% sure about this - the www.vim.org page gives me a "Connection reset" right now - but I remember it doing this).

Re: Remove Ex-Mode from Neovim

#39
This is like dropping support for Internet Explorer 6 in a website - code gets cleaner at the expense of a minor group of users getting a worse experience. I think it is a good tradeoff.

Re: Remove Ex-Mode from Neovim

#40
post #6

Removing pretty powerful feature just because author of fork doesn't use it sounds… well, actually author of fork can remove whatever he likes, but presenting neovim like "refactord vim with more features" isn't fair or even plausible in this case. And for what reasons? Oh, I see, it makes code complicated. Did he think vim'c codebase is scary for no reason? Removing all the code from vim would be the ultimate simpli…

Personally, I think this is an excellent change. If neovim remains 100% compatible with vim, down to every minor issue, then it will be very hard to usefully improve. Personally I don't use vim, even though I like the concept of vim, because it simply doesn't fit with the ecosystem I want to use (it seems to be hard to integrate clang for auto-complete and syntax highlighting into vim for example, without long hangs…

You may want to try https://github.com/Valloric/YouCompleteMe Does exactly what you describe wanting, and very well IMHO.
Post reply on HN