Live data from Hacker News

Vim 8.2

vim.org

31–40 of 80 posts

Re: Vim 8.2

#31
post #25
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.

Check out VimAwesome ( https://vimawesome.com ) for finding plugins. They provide instructions for installing each plugin via Vundle, NeoBundle, VimPlug, and Pathogen.

I don't think the problem is finding vim plugins. It's more of choosing the best one. I don't want to spend a ton of time trying dozens of them.

What would be a single, simple thing I should do to improve Python coding experience when I login to some remote server? E.g. open .vimrc, put a few lines there, download/install plugin X.

Re: Vim 8.2

#32
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.

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.

Re: Vim 8.2

#33
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.

Yes, I didn't expect to see popup windows, which seems to a be a direct response to Neovim's floating windows (https://twitter.com/Neovim/status/1101879098044043264).

Re: Vim 8.2

#34
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.

Shameless plug, I wrote Snake for Vim, which helps you configure Vim to be more flexible for writing code, using regular Python.

https://github.com/amoffat/snake

Re: Vim 8.2

#35
post #26
post #23

Earlier quoted context omitted.

I'm confused, is vscode not a local environment?

VS Code is local but I assume OP means with VS Code remote extensions you don't need Python locally.

Oh I see. Yes, it's a good point.

Re: Vim 8.2

#36
post #20

Earlier quoted context omitted.

There are a lot of ways to skin this particular cat. I've found vim-lsp is probably the best starting point, as you can plug any server you want into it, and have a consistent interface. https://github.com/prabirshrestha/vim-lsp/wiki/Servers-Pytho...

What does it mean "plug in a server into it"? I looked at the page you linked to, and I have no idea what any of that means, or what to do with it. I just want some basic stuff: autocomplete + indentation will probably achieve 90% of what I want from a Python IDE.

Check out coc aka Conquer of Completion

Re: Vim 8.2

#37
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.

You don't necessarily need any plugins. Vanilla Vim with the occasional ctrl+N is often enough. If you need a more powerful editor, perhaps it's better to just use something like VS Code.

Re: Vim 8.2

#38
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.

Re: Vim 8.2

#39
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.

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.

Re: Vim 8.2

#40
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.

May I interest you in https://github.com/neoclide/coc.nvim which let's you use some of the most popular bits of vs code in neovim
Post reply on HN