319 points · by eugene_pirogov · 9y ago · 140 comments
I have being using it for 2-4 years (can't remember exactly) and got the same 0 problems I run into Vim. Earlier versions required you to recompile NeoVim to enable new features for plugins.
Yesterday I installed NeoVim in my new laptop and it was a smooth experience: Installed it using Ubuntu package manager, installed Vim-Plug for managing plugins, copied my old init.vim (or .vimrc), run vim and everything in order.
I am really happy with NeoVim. I faced no problem with it that Vim could not resolve but I know the insides being a better ecosystem for core and plugins developers, so I will stick with it.
I'm using the word "modern" in a derogatory fashion to underline that we often mistake new for good.
This means that when developing code in any language that has a REPL I can test it out as I develop line by line.
According to the roadmap[1], lua will be built-in in 0.3.
I don't know if anything has improved with vim since (probably, with 8.0), but I have no reason to go back, either.
The only thing that I had issues with was plugins using the remote api from node because I kept forgetting to install node_host (which was mentioned in the README and I just overlooked). Once I remembered to install that (and node locally), everything just worked.
I see developers of the editor happy, which is a good thing, but IMO to get more users NV must show why it is better from a user perspective -- have several demos on the powerful things easily achieved with NV that are painful with Vim (via plugins is OK).
If NV devs can do this, it will go far. If not, then the case for an upgrade hasn't been made yet for most users. My 2c.
NeoVim seems to bring these qualities into Vim sphere, giving the users and extension developers (in Emacs many extensions are apps themselves) better primitives to develop tools and applications, and allow to abstract-away Unix userland which is way too low-level and as I said above, not that friendly and helpful environment to live in. It holds on to what makes Vim interesting (modal editing, the range-command-object-movement style editing commands, ex mode) while adding a better API (VimL is...).
Still having trouble with identation, though. vim is just smarter ...
While that is still generally true in my experience, it helps a lot to set c-style indentation to linux-style instead of gnu-style.
From the top of my .emacs:
(setq c-default-style "linux"
c-basic-offset)C-j runs the command electric-newline-and-maybe-indent (found in global-map), which is an interactive compiled Lisp function in ‘electric.el’.
It is bound to C-j.
(electric-newline-and-maybe-indent)
Insert a newline. If ‘electric-indent-mode’ is enabled, that’s that, but if it is disabled then additionally indent according to major mode. Indentation is done using the value of ‘indent-line-function’. In programming language modes, this is the same as TAB. In some text modes, where TAB inserts a tab, this command indents to the column specified by the function ‘current-left-margin’.
With this I wholeheartedly agree. Without NV async would likely still be on the Vim wishlist. And if neovim wants a small donation I will gladly do that to say thanks.
However, now Vim does have async support as well, this use case is gone. NV needs to find the next one (and next and next). If their code is cleaner and easier to work on they will permanently overtake vim in features sooner rather than later.
Also, saying that Vim wouldn't have gotten the async features without Neovim is wrong. It would have come in sooner or later, Neovim sure made it a priority.
So they decided to write their own text editor that supported async plugins. Bram got butthurt and didn't want to lose a large portion of his user base, so he added async support.
NeoVim's first public release (version 0.1) was released in December 2015. [0] And you can see that Vim development really picked up in early 2016. [1]
Coincidence?
Anyway, both text editors are awesome, and Vim is better off now that it has competition. The async features would never have come without the competition of a rival project.
[0] https://neovim.io/news/2015/december/ [1] https://github.com/vim/vim/graphs/contributors
This is anecdotal speculation, but I imagine that most Vim users are in a similar boat. I talk to so many lifelong Vim users who have never even heard of "pathogen" or other plugin management systems. I'm pretty sure that heavy plugin users are the minority.
Most people who seem excited about NeoVim (or even talk about it at all), fall into three categories:
1) Heavy plugin users, who want plugins with some feature not well-supported by Vim.
2) Developers who would like to embed Vim within their own applications, but find the classic Vim codebase or license unsuitable for this.
3) "Ideologues". People who don't like Bram Moolenaar. People who wish he would have accepted a pull request that he declined or ignored. People who wish he would release Vim more frequently, make it more trendy, or bloat it up with this or that new feature. People who just don't like the way that the Vim project is run, ideologically speaking. (EDIT: i.e. the brigade crowd who's downvoting every comment that isn't unqualified praise and support for NeoVim.)
So like I said, I'm pretty sure that the overwhelming majority of Vim users do not fall into category #1. And the other two categories are tiny subsets of that first one. So to turn the question around... why WOULD people go out of their way to abandon the default, and flock to something else which might drift away from compatibility over time?
Now since I can do most of my work locally, neovim's terminal support has, for me, completely replaced my use of tmux splits. Having moved all my split usage out of tmux into neovim has simplified my setup and keybindings. And I grok and am more comfortable now with vim/neovim splits.
I actually am fixing up the install documents even though I don't use Neovim
I don't know how much it is used, but what are you basing that claim on?
I do use psql's `\e` command to open the previous query in your `$EDITOR`, but that only lets me get the single previous query, and throws out any comments.
tnoremap <C-h> <c-\><c-n><c-w>h
tnoremap <C-j> <C-\><C-n><C-w>j
tnoremap <C-k> <C-\><C-n><C-w>k
tnoremap <C-l> <C-\><C-n><C-w>l
nnoremap <C-h> <c-w>h
nnoremap <C-j> <c-w>j
nnoremap <C-k> <c-w>k
nnoremap <C-l> <c-w>lI'd happily have switched if only for the code quality reputation. But it needs to be easy - no, that's too weak a word, it needs to be trivial - to install in the usual way I install things.
Yay, no more compiling to upgrade!
> Windows is no longer "experimental", it is fully supported. > Windows package includes a GUI, curl.exe and other utilities.
Awesome. Well thought-out.
> 1215084 backtick-expansion works with shell=fish #6224
Solves one of my main problems.
It'd also be great if there was a way to have neovim "wrap" arbitrary shell commands, kind of like rlwrap[1] does, only with full vim editing features available instead of the relatively crippled readline.
https://github.com/akahuku/wasavi
I'm hoping it's ported to Firefox when webextensions are ready.
> Actual uses an embedded Neovim instance to accurately manipulate each Sublime Text buffer as though you were editing the text directly in vim, without breaking any Sublime Text features (aside from multiple selection for now).
- It also breaks the automatic (while typing) completion and snippet suggestion popups (though Sublime's autocomplete has been wired into Vim and works great there)
- Sublime's undo works but isn't coalesced properly while you're in Vim mode (but Vim's works fine there).
> Windows support:
> Windows is no longer "experimental", it is fully supported.
> Windows package includes a GUI, curl.exe and other utilities.
Edit: I realize that "Vim 8 features: partials, lambdas." might solve part of my problem.
Yeah, not going to happen. ViM's author is remarkably hostile to the efforts of NeoVim and the ideas it brings forth.
Vim lags on my project, nvim doesnt! Quadcorei5, 16hb ram!
Scala (700 lines/file)
Managed to do more with nvim - yet to try syntactic again, thatll be the real test) but so far amuch more stable experience movement wise. (the files i work on are huge and im tasked with refactoring, so i cant avoid the hugeness)
We love updates after all.
Persistent undo, More encryption, Conceal text, Lua interface, Python3 interface.
Not trying to come off as confrontational, just my 2¢.
I've never understood the almost subtle elitism behind being able to use Vim without a mouse because "moving your hand to the mouse is slow". If a problem is so simple my writing/editing a solution for it is constrained by... the time it takes my hand to move to my mouse... I usually just fire up nano.
There is the more "open" and "community-focused" development model, and better code organization, if you care about those.
What I saw in using nvim:
- terminal use
- async plugins
- it's almost entirely compatible to vim anyway, so you can switch whenever you want to.
Also would like to say thanks to the devs working on making neovim.I've switched back and forward between neovim and vim since last year. Most people won't notice a difference right now. I think around version 1.0 we'll start seeing people do some more compelling stuff with neovim.
If you're asking what good is a built in terminal, well, there's plenty of scenarios. One I'm facing right now is using GVim on Windows. Have you ever seen what happens when you type !dir in GVim, right now? It's really ugly.
In tmux I know of a workaround (iirc, 'set escape-delay 0' or something similar), but I wish I didn't have to change a tmux setting so one program can function. It's really annoying.. but ultimately worth it, I guess.
That said — to the neovim team: congratulations on reaching the 2.0 milestone!
And btw. it's version 0.2 not 2.0
Caveats: if you depend on plugins to give you an IDE-like experience in Vim, kak is not for you. Your vim plugins won't work. If you use Windows but don't want to use Cygwin, kak is not for you.
Has been a while since I have read up on that, though.
* https://github.com/neovim/neovim/blob/v0.2.0/src/nvim/tui/tu...
Ironically, it actually implements both of DECSLPP and DECSCPP, but without the restrictions to only some sizes. So nvim could use these DEC VT control sequences to set the screen size. Unfortunately, there is no simple mechanism for nvim to know this. There's no terminal type that a user could set that would hint at this ability, let alone a termcap/terminfo capability.
Nonetheless, just blithely assuming that every terminal type in existence implements dtterm's idiosyncratic extensions to the DEC VT control sequence set is wrong. There is a way for nvim to be told that the terminal is likely to have dtterm's idiosyncrasies, or indeed xterm's. nvim even uses it to detect other terminal types with other idiosyncratic control sequence extensions.
It actually becomes usable once this bug is fixed.
* https://github.com/jdebp/neovim/commit/3304de142b60efe8728c0...
- Start nvim-qt.exe
- Get message box saying "The Neovim process has crashed"
- Go back to Vim