Live data from Hacker News

Vim 8.2

vim.org

61–70 of 80 posts

Re: Vim 8.2

#61
post #51
post #49

Earlier quoted context omitted.

I've been doing python development in vim for the past 8 years with no plugins. Works perfectly fine.

Would you modify vimrc at all on a remote server if you had to do some Python coding there? I mean maybe a few hours of coding, but you won't be coding again on that server, so you don't want to spend too much time configuring it.

Haven't been in that situation, but looking through my vimrc, the only things that I think I'd consider updating are turning off line wrap and changing the tab settings.

Basically this block:

  set ts=3
  set expandtab
  set sw=3
  set nosmartindent
  set nowrap

I don't know what all of those mean, but I like how my vim works. Usually if I'm editing files on a server its just editing configuration files, and I just use whatever the stock vim settings are.

Re: Vim 8.2

#62
post #50
post #39

Earlier quoted context omitted.

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.

auto indent and syntax highlighting are there by default. Never used autocomplete so can't say.

Afaik there’s basic autocomplete but only if vim was built with the python option enabled.

But then again I use vscode and pycharm in vim mode.

Re: Vim 8.2

#63
post #51
post #49

Earlier quoted context omitted.

I've been doing python development in vim for the past 8 years with no plugins. Works perfectly fine.

Would you modify vimrc at all on a remote server if you had to do some Python coding there? I mean maybe a few hours of coding, but you won't be coding again on that server, so you don't want to spend too much time configuring it.

«set list» will enable tab highlighting.

Re: Vim 8.2

#64
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

In the other direction the VSCodeVim plugin has options to experimentally use Neovim to power some vim features inside of VS Code.

https://github.com/VSCodeVim/Vim

Re: Vim 8.2

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

I still use both but lately Neovim just works better although I think it uses more memory. It could be the appimage though. Most of the extensions that I use in Neovim are written in VimL (Pathogen and Lightline and the Monokai Tasty color scheme). In some terminals (Xfce term) nvim messes up vim paste until you reset the term. It's very annoying.

Re: Vim 8.2

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

> 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 my codebase, but I hope it's added in soon.

python-mode did remove its folding capabilties some time back, but it was easy to use another plugin for that: vim-coiled-snake[2].

Apart from these two plugins, and vim-fugitive[3] for git (another one that is a must-have), I don't use anything else except for the occasional syntax coloring plugin.

[0] https://github.com/python-mode/python-mode

[1] https://black.readthedocs.io/en/stable/

[2] https://github.com/kalekundert/vim-coiled-snake

[3] https://github.com/tpope/vim-fugitive

Re: Vim 8.2

#67
post #56
post #42

Earlier quoted context omitted.

Just out of curiosity (and this goes into the subject of open source project dynamics of which I am really just a lay observer, and as someone who hasn't followed the history of either projects closely) - how is vim vs neovim organized as open source projects? Do both have a healthy ecosystem of contributor/maintaners? Are either in danger of running into "single person syndrome" or "hit-by-a-bus" syndrome?

I thought vim always was a «BDFL project», i.e. run by one person.

Run by one person doesn't mean developed by one person.

Re: Vim 8.2

#68

At this point, vim is hindering progress. While they finally compied almost all of additional features of neovim, there is no sense of innovation and progress there and unfortunately the diff with neovim is right now minimal so neovim loses contributors that would otherwise be

I don't see how vim can be hindering progress when it, along with emacs, is more powerful than the editors that 99% of other people are using.

Re: Vim 8.2

#69
post #66
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.

> 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?

Re: Vim 8.2

#70
post #42
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.

Just out of curiosity (and this goes into the subject of open source project dynamics of which I am really just a lay observer, and as someone who hasn't followed the history of either projects closely) - how is vim vs neovim organized as open source projects? Do both have a healthy ecosystem of contributor/maintaners? Are either in danger of running into "single person syndrome" or "hit-by-a-bus" syndrome?

Neovim was started pretty explicitly to be a community project. There's a main maintainer but there's no BDFL. Vim has Bram as BDFL.

I'd say that for (Neo)Vim, which is a mature project with a clear design, the BDFL approach is ok but there are risks, illustrated by the half decade where Vim stagnated. Neovim has a less risky approach to project management, I'd say.

Of course, we need to revisit this topic in a decade or so :-)

Post reply on HN