Live data from Hacker News

Vim 8.2

vim.org

71–80 of 80 posts

Re: Vim 8.2

#71
post #69
post #66

Earlier quoted context omitted.

> Which plugins for Python coding are universally agreed on as "must haves" Preferably just one, or two at most. I wrote Python in Vim for about 15 years before finding python-mode[0] about 4 years ago and I now find it absolutely indispensable. Just about the only thing that it doesn't do natively is Black[1] (think gofmt for Python) which I started using a few months ago. It's not too hard to run it occasionally on…

These actually seem to be exactly what I was looking for, thanks! What about files view in vim, like Nerdtree that someone mentioned below?

I've always used the NetRW plugin for file management. NERDTree was too sluggish for me (but that was 6 years ago...) NetRW does all I need to: tree view, open file (same buffer, same side-buffer, new buffer, new tab), create file, delete file. And it comes with vim's distribution.

Anything else I need I use a real file manager, like Midnight Commander (usually inside a vim's tab) of vifm (a very vi-like file manager).

Re: Vim 8.2

#72
post #39

Earlier quoted context omitted.

You don't need any for python, really. You can run pdb in your :term split, which is nice. Other than that you only really get the vim advantage over IDE if you practice.

Autocomplete, autoindentation, and perhaps colors would be nice though! To me, the main advantage of vim over IDE is it's there on any remote server.

Ctrl-p is the shortcut for 'dumb' autocomplete in vim.

Re: Vim 8.2

#73
post #10

I'm using plain vim occasionally, but never tried to do any coding in it, just because I'm not sure how to configure it for that. Which plugins for Python coding are universally agreed on as "must haves" Preferably just one, or two at most.

I use Vim to code, but it took me a lot of time to find to configure it. My primary need when coding is quick jump to symbol definition, and after many trial and error attempts, settled on the plugins `vimprj` and `indexer` in combination with Universal Ctags. Have been using this setup for years and it's proven to be stable and giving me the result I need.

But I hate Vim.

It's so fragile. Configuring it is a nightmare. One buggy plugin could cause weird behaviour in the editor, and I'd had a hard time figuring out why.

In a recent incident of this kind, I noticed that the scrolling of syntax highlihted code became horribly slow, and the cause turned out to be the new regex engine of Vim 8.

So I've compiled Vim 7.4 from scratch, and intend on using that version till the end of time. By the way - my plugins are manually installed and I never upgrade them. Ever.

Re: Vim 8.2

#74
post #73
post #10

I'm using plain vim occasionally, but never tried to do any coding in it, just because I'm not sure how to configure it for that. Which plugins for Python coding are universally agreed on as "must haves" Preferably just one, or two at most.

I use Vim to code, but it took me a lot of time to find to configure it. My primary need when coding is quick jump to symbol definition, and after many trial and error attempts, settled on the plugins `vimprj` and `indexer` in combination with Universal Ctags. Have been using this setup for years and it's proven to be stable and giving me the result I need. But I hate Vim. It's so fragile. Configuring it is a nightma…

So, given what you just wrote, why do you still use it?

Re: Vim 8.2

#75
post #47
post #30

I switched to NeoVim a few years ago and I'm not entirely sure whether Vim has caught up in features, diverged, or what ratio of the two. That said, I'm not switching back. The only editor I'm really interested in is VSCode. Not that I use it much, but I am very impressed.

> That said, I'm not switching back. Me either. If you go back to early stories of Bram, the BDFL, when others tried to add Neovim features to vim. He wasn't onboard. Not to discount all the amazing contributions he has done and his importance. But I just think it is karma. Here is another hacker news post discussing the backstory: https://news.ycombinator.com/item?id=12481084 Here is a bit of shade tossed on the Neo…

If you read Thiagos's message about job/channel features you will notice a couple of points he made.

1. NeoVim made the channel/job feature first, so vim should follow it. 2. Vim's design is broken. 3. Bram should write new features for NeoVim first, why no PR's Bram?? Why no PRs to neovim?

Thiago is clearly an asshole. Sorry but I think Bram was reasonable and polite with his responses. His opinion about NeoVim's version is that it was too complicated, and he was right.

The problem is NeoVim started off on the wrong foot trying to throw away decades of work and then expecting Bram to implement new vim features? Seriously Thiago?

Re: Vim 8.2

#76
post #74
post #73

Earlier quoted context omitted.

I use Vim to code, but it took me a lot of time to find to configure it. My primary need when coding is quick jump to symbol definition, and after many trial and error attempts, settled on the plugins `vimprj` and `indexer` in combination with Universal Ctags. Have been using this setup for years and it's proven to be stable and giving me the result I need. But I hate Vim. It's so fragile. Configuring it is a nightma…

So, given what you just wrote, why do you still use it?

I tried to switch to other editors several times, but couldn't make the transitions for several reasons: ) My editing workflow now is tightly tied to Vim, for example the normal/insert mode paradigm. ) The capability to navigate using hjkl is helping with my RSI condition, because I find that it helps to offload some of the workload on the wrist of the right hand. When editing in Vim, as compared to other traditional editors, my hands get less tired. *) Other editors have their own quircks, and I don't want to spend yet another number of years to adjust.

I've decided that the next time I switch to an editor, it's going to be to one written by myself.

Re: Vim 8.2

#77
post #73
post #10

I'm using plain vim occasionally, but never tried to do any coding in it, just because I'm not sure how to configure it for that. Which plugins for Python coding are universally agreed on as "must haves" Preferably just one, or two at most.

I use Vim to code, but it took me a lot of time to find to configure it. My primary need when coding is quick jump to symbol definition, and after many trial and error attempts, settled on the plugins `vimprj` and `indexer` in combination with Universal Ctags. Have been using this setup for years and it's proven to be stable and giving me the result I need. But I hate Vim. It's so fragile. Configuring it is a nightma…

If you had used a plugin manager like Vundle, you could have simply uninstalled the plugin that's giving you trouble.

Re: Vim 8.2

#78
post #28

Say what you want about Neovim, but it sure motivated Bram to make Vim better again. Almost everything listed here looks like a direct reaction to features Neovim has added. Same for older releases (async, terminal, etc.). Competition is good and I'm glad we're having it.

reminds me of clang/gcc ps: I honestly wonder if it's a competition feeling or just a side-induced motivation. Sometimes I look at people online and it revives the desire to do things they do that I couldn't before.

This is more like egcs/gcc. Like egcs, neovim is also a fork motivated by the desire for a new governance model.

Re: Vim 8.2

#79
post #45
post #10

I'm using plain vim occasionally, but never tried to do any coding in it, just because I'm not sure how to configure it for that. Which plugins for Python coding are universally agreed on as "must haves" Preferably just one, or two at most.

Vim's included Python support already does language-specific stuff like syntax highlighting and indenting. I think people use Jedi for autocomplete; I've never used it. I'm one of the "computing for the apocalypse" people who try and configure things as little as possible, but I'm really attached to linting in Vim, and I use ALE [1] for this. AIUI it's the standard for asynchronous linting; Syntastic is the synchrono…

Ale is great - lints, checks, fixes - rules my world. A little complex to get going for multiple languages but when you do it's very powerful.

BTW worth checking https://github.com/justinmk/vim-dirvish as a lightweight alternative to NerdTree or netrw.

Re: Vim 8.2

#80
post #45

Earlier quoted context omitted.

Vim's included Python support already does language-specific stuff like syntax highlighting and indenting. I think people use Jedi for autocomplete; I've never used it. I'm one of the "computing for the apocalypse" people who try and configure things as little as possible, but I'm really attached to linting in Vim, and I use ALE [1] for this. AIUI it's the standard for asynchronous linting; Syntastic is the synchrono…

Ale is great - lints, checks, fixes - rules my world. A little complex to get going for multiple languages but when you do it's very powerful. BTW worth checking https://github.com/justinmk/vim-dirvish as a lightweight alternative to NerdTree or netrw.

Oh wow, thanks for the tip. Gonna check it out.
Post reply on HN