Live data from Hacker News

Neovim v0.4.0

github.com

121–130 of 168 posts

Re: Neovim v0.4.0

#121
post #86
post #77

Earlier quoted context omitted.

vim modes in IDEs are often inadequate (if this is not immediately obvious, you probably just don't use vim as fully as possible). The IDEs are often (too) complex in the sense of a hodgepodge of GUI options and menus which are hard to navigate. You often can't put the IDE configuration in a version control system easily. IDEs are often sluggish. The plugin system for vim is superior to most IDEs. It's not that using…

I agree completely. For me, for now, I have vscode with vim emulation. I find that it's more convenient to have everything vscode has + vim keys for a lot of things, than have all of vim + try to make vim do what I like from vscode. I really hope in the future I'll find the time to do that, but for now I am content. It's always a trade-off.

Have you noticed any sluggishness when using Vim commands in VS Code? I use nvim + tmux as my go to and it's pretty responsive (still has trouble catching up to me sometimes) but I often have to wait for VS Code.

Re: Neovim v0.4.0

#123
post #69
post #13

Earlier quoted context omitted.

Both neovim-gtk & gnvim are great but don't integrate nicely with standard ctrl + c, ctrl + v actions which is super frustrating. VSCode with vim plugin handles this well with the Use Ctrl Keys option set. If you're in insert mode, ctrl + v will paste, otherwise ctrl + v will start visual mode. If you are selecting text, ctrl + c will copy.

In addition to sibling comment - does any vi(m) work with the (non) standard (for vi) ctrl-v/c out of the box? I understand setting the star/plus as default registry so that paste and yank read/fill the system clipboard. But using ctrl-V for paste is surely alien? Nothing wrong with custom keybindings, obviously. But it sounds rather non-standard?

Shift + Insert works on every platform I've tried it on. Ctrl-V/C are Unix console commands.

Re: Neovim v0.4.0

#124
post #60

Last time I checked neovim-qt on mswin, it couldn't make an explorer association due to non-standard command-line treatment, rendering it useless from gui pov. Reporting an issue got some friction, but now it seems that they fixed that. But from double-clicking .txt to editing it spends 2 seconds. Vim just opens instantly. Also, neovim doesn't respect scroll amount setting, scrolling three fixed lines per scroll step…

I really hope at some point we get one official blessed GUI implementation per platform a-la gVim and we don't have to pick and choose which particular one has the least shortcomings.

Re: Neovim v0.4.0

#125

Here's a random question for Vim users who might know Kakoune... What can be done to make Vim behave like Kakoune? Odd question, I know. As a former Vim user, I switched to Kakoune about a year ago and absolutely love it. The multi cursor behavior, and selection before action combined to make a really excellent and visual experience. With that said, after 15 years in the Terminal, I tire of it. I want a GUI. Neovim h…

> selection before action

use visual mode more?

Say you want to replace the contents inside a pair of matching parentheses. Instead of ci( type vi( and if you are happy with the selection, then type c -- that takes an extra keystroke, but gives you visual confirmation of what you are operating on.

Or slightly differently, and this is useful only for "c"hange, add "$" to your cpoptions (that is, :set cpoptions += "$" in your vimrc).

    When making a change to one line, don't redisplay the
    line, but put a '$' at the end of the changed text.
    The changed text will be overwritten when you type the
    new text.  The line is redisplayed if you type any
    command that moves the cursor from the insertion
    point.

Re: Neovim v0.4.0

#126

The vim tricks I got used to in the past 15 years are neat for a quick remote edit, however, nowadays I enjoy RAM eating smart editors like vs code and intellij which makes me satisfyingly efficient without remembering to use my shortcuts. What I do is mostly refactoring, finding files by name or contents and moving cursor to places I've been in which provides seamless navigation between files as well.

It's possible to get a best of both worlds setup if you try. Have you tried the Vim plugin for VS Code?

The VS Code plugin is interesting in context of this Neovim update because it will actually use parts of Neovim as a "native library" to speed some operations (mostly ex commands), if Neovim is installed.

https://github.com/VSCodeVim/Vim

Re: Neovim v0.4.0

#127
post #38

On this topic, can anyone share their Python setup for Neovim? I used ALE and Deoplete + a bit of Jedi and got frustrated with it breaking / working much worse than ST3 and just removed all the plugins.

I use LanguageClient-neovim[0] with pyls[1], tests are run using `:make` which populates the quickfix list with errors. I also heavily use the location list which gets populated with errors and warnings etc. automatically by LanguageClient-neovim. All of this is accessible through convenient keybindings. Full python setup here: https://github.com/L0stLink/anvil Status bar is lightline[2] with a custom theme, which I…

Thanks for sharing your config files.

Re: Neovim v0.4.0

#128

The vim tricks I got used to in the past 15 years are neat for a quick remote edit, however, nowadays I enjoy RAM eating smart editors like vs code and intellij which makes me satisfyingly efficient without remembering to use my shortcuts. What I do is mostly refactoring, finding files by name or contents and moving cursor to places I've been in which provides seamless navigation between files as well.

It's possible to get a best of both worlds setup if you try. Have you tried the Vim plugin for VS Code? The VS Code plugin is interesting in context of this Neovim update because it will actually use parts of Neovim as a "native library" to speed some operations (mostly ex commands), if Neovim is installed. https://github.com/VSCodeVim/Vim

> a best of both worlds

Or the worst.

Re: Neovim v0.4.0

#129

I'll just leave a shameless plug for my neovim GUI project here: https://github.com/vhakulinen/gnvim . It has a WIP PR[1] for implementing multigrid support, which would allow features such as scrollbars. There are many other GUIs too, such as oni/oni2, gonvim, neovim-gtk and neovim-qt. Extensive list can be found here: https://github.com/neovim/neovim/wiki/Related-projects#gui 1: https://github.com/vhakulinen/gnvim/…

I just tried this. I get rendering artifacts when scrolling. BUT! The scroll speed is absolutely wonderful. I've tried all the UIs and always find myself going back to the terminal, but this is something else. Although I have to say fvim looks tempting as well and vimr(I'm not on MacOS anymore). For those people mocking vim users and bragging about their IDE's. With languageserver and the other kind of refactoring da…

I am happy with Neovim in a terminal too. But I wanted I wanted it running as a separate application that I could launch and switch to, so I downloaded the iTerm2 source code and changed the icon and application name and created a profile that just runs Neovim. I find this works well, but maybe someone knows a simpler way, or a generic way, to do this on OS X?

Re: Neovim v0.4.0

#130
post #44
post #36

Earlier quoted context omitted.

Interesting. Are you using some sophisticated plugins, some unusual platform? I've aliased vim to neovim a few years ago and it has not crashed once for me.

OSX. Plugins: ale, bufexplorer, nerdtree, rust.vim, vim-airline, vim-airline-themes, vim-colors-solarized I generally start vim in my src folder on Monday and exit it on Friday. Occasionally, just on a whim, I run nvim instead. Mostly its fine. But the times I've experienced crashes or other hickups like rendering bugs forcing me to :qa!, it's been on nvim. Edit: Oh and I run it in the terminal, iTerm2 to be precise.

I use macOS and iTerm2, never experienced a crash. Perhaps one of your plugins is causing the issue?
Post reply on HN