News for hackers. Stuff that matters.
Re:Nova by Panic by thamer on Wednesday September 16, 2020 @05:33PM (#24498232)
Looks pretty, but is there really no Vim extension? I couldn't find one on the Extensions page. This is a deal-breaker for me, I can't use an editor or IDE without Vim bindings, this would kill my productivity.

Is one planned, maybe?

Re:Nova by Panic by bkanber on Wednesday September 16, 2020 @06:07PM (#24498556)
This was the first thing I looked for too. Perhaps one is planned or perhaps they're counting on the community to write one using their API.

TBH the only feature I truly use JetBrains for is their Cmd+Click to jump to definition, otherwise I'd be happy sticking with tmux+vim as IDE (as I did for about a decade).

Re:Nova by Panic by dcow on Wednesday September 16, 2020 @06:22PM (#24498697)
VIM can do this with a language server plugin now. It’s super refreshing to have compiler errors and symbol navigation inside native vim. Come back!
Re:Nova by Panic by finnh on Wednesday September 16, 2020 @06:31PM (#24498774)
any pointers? i'd love to upgrade my beloved VIM from ctags-era navigation, but don't have time to shave the whole yak. Would love to hear your tips.
Re:Nova by Panic by fratajcz on Wednesday September 16, 2020 @06:51PM (#24498942)
Multiple plugins are available to add LSP support in vim, such as coc.nvim (uses node.js, more features) or vim-lsp (lighter, written in vimscript).

Neovim is also going to add native LSP support as well as tree-sitter in their 5.0 release, it's already available in nightly builds.

The most straightforward option is probably coc.nvim, which tries to give a similar experience to VS Code out of the box.

https://github.com/neoclide/coc.nvim https://github.com/prabirshrestha/vim-lsp https://github.com/neovim/nvim-lspconfig https://github.com/neovim/neovim

Re:Nova by Panic by e12e on Thursday September 17, 2020 @11:14AM (#24505628)
I'm mostly well served by a slew of ruby/rails plug-ins along with tags - but this so answer might be a good, somewhat modern starting point. I'm going to check out if vimspector can help me with my debug flow:

https://stackoverflow.com/a/51195409

Re:Nova by Panic by xfer on Wednesday September 16, 2020 @09:12PM (#24500090)
ccls would be the language server for your C/C++ projects. Works very well even for a Qt project.
Re:Nova by Panic by thamer on Wednesday September 16, 2020 @06:55PM (#24498985)
I don't know which JetBrains product(s) you are referring to, but in IntelliJ you can use ⌘ + B to go a symbol's definition instead of using your mouse/trackpad with ⌘ + Click.

There's probably a similar shortcut in their other IDEs (try right-click > Go To > Declaration or Usages and note the key combination listed next to it).

Re:Nova by Panic by mmm_grayons on Wednesday September 16, 2020 @06:19PM (#24498670)
Wouldn't g ctrl+] work for jumping to definition with a tags file?
Re:Nova by Panic by sushisource on Wednesday September 16, 2020 @06:25PM (#24498725)
Not to speak for parent comment, but the reason I use vim plugins in JetBrains IDEs is to have all that shit "just work". Yeah, you can setup stuff to autogen tags, but it's not always reliable. If you care about other IDE features (I do) then the list of crap you need to do to get vim/nvim to work properly piles up endlessly. I'll take the IDE with it's nice appearance and features and slap the keybindings in any day over the reverse.
Re:Nova by Panic by OOPMan on Wednesday September 16, 2020 @06:55PM (#24498989)
Indeed.

I suspect the reason a lot of people don't seem to refactor their code is because they would have to do so semi-manually with whatever hip-but-feature-bereft editor they've sworn allegiance to.

Re:Nova by Panic by bkanber on Wednesday September 16, 2020 @06:41PM (#24498847)
ctags (which is the way I used to do it) was always sort of hit or miss for me. JetBrains OTOH just works. Apparently there's a new way of doing it though, which I should look into.
Re:Nova by Panic by reaperducer on Wednesday September 16, 2020 @06:16PM (#24498641)
I can't use an editor or IDE without Vim bindings

Maybe this part will help:

"We have easily customizable key bindings"

I don't know if they can be customized to match Vim, but it might be too soon to write Nova off.

Re:Nova by Panic by thamer on Wednesday September 16, 2020 @07:06PM (#24499092)
As M4v3R noted, what Vim does is not usually possible with just custom key bindings. If you're not familiar with it, I would highly recommend giving it a try; even as a beginner if you know only a few commands it'll still save you a ton of time. I find it hard to watch co-workers press arrow keys repeatedly or select text character by character when the same could be accomplished with one or two key presses.

You have two lines and want to swap them? ddp – that's it. 3 key presses. You have a string on the same line as your cursor and need to replace it? ci" – also 3 key presses (Change Inside "Quote).

No editor has configurable key bindings that can do this.

There are tons of tutorials online; this one seems to explain things pretty well: https://takac.github.io/2013/01/30/vim-grammar/

Re:Nova by Panic by M4v3R on Wednesday September 16, 2020 @06:36PM (#24498813)
Vim support is more than just key bindings. The most powerful thing about Vim is that it’s modal, ie. you have several editing modes - insert, normal, replace, visual, all with their own set of commands.
Re:Nova by Panic by arvinsim on Wednesday September 16, 2020 @11:30PM (#24500907)
I can do away Vim itself. It's the modal editing feature that I really need. That's why I am satisfied with IdeaVim even if it is not a full blown Vim instance.