Live data from Hacker News

Vim after 15 Years

statico.github.io

81–90 of 176 posts

Re: Vim after 15 Years

#81

An interest plugin I've found recently (Neovim only) is Deoplete, which is basically Ctrl-n on steroids. As you type, it shows a list of completions without any kind of slowdown (on my 4 yo MBA). For some languages, such as TypeScript, it even shows type definitions. It's close to being on-par with the smart completion in IntelliJ. https://github.com/Shougo/deoplete.nvim

There's a bunch of plugins like that, here's a couple of the most popular ones:

- https://github.com/prabirshrestha/asyncomplete.vim

- https://github.com/lifepillar/vim-mucomplete

- https://github.com/roxma/nvim-completion-manager

- https://github.com/Valloric/YouCompleteMe

Re: Vim after 15 Years

#82

I was split between using Emacs and Vim for last 2 years (I used Vim for last 6, and learned Emacs 2 years ago). But what made Vim my main editor is fzf and ag, and smooth workflow that I had in terminal. But I have to say, ivy and counsel made my Emacs experience much, much nicer. But I guess that I got too deep into Vim already that I kinda got used to it so much, that I appreciated more that "terminal" workflow.

> I was split between using Emacs and Vim for last 2 years You're going to have to pick a side. You can't be an atheist that dabbles in Catholicism.

A friend of mine is an avid Spacemacs user (which, as far as I understand, is a Vim distribution running on Emacs or something like that). He has both a Vim and an Emacs sticker on his notebook next to each other, and they've been carefully applied so that they overlap each other both ways.

Some men just want to watch the world burn.

Re: Vim after 15 Years

#83
post #53
post #15

Earlier quoted context omitted.

Switched to i3 a few weeks back and I absolutely love it. Switching between applications and workspaces is incredibly fast, and the _only_ time I need the mouse is for web browsing. It's amazing.

Firefox? Check out something like VimFX. No need for the mouse on 80% of the webpages.

Unfortunately, it'll also be obsolete in a few weeks when Firefox 57 comes. I've switched to Saka Key, but it's not yet a viable replacement (esp. because clipboard interactions are broken in FF 56 on my Linux systems).

Re: Vim after 15 Years

#84

I was split between using Emacs and Vim for last 2 years (I used Vim for last 6, and learned Emacs 2 years ago). But what made Vim my main editor is fzf and ag, and smooth workflow that I had in terminal. But I have to say, ivy and counsel made my Emacs experience much, much nicer. But I guess that I got too deep into Vim already that I kinda got used to it so much, that I appreciated more that "terminal" workflow.

> I was split between using Emacs and Vim for last 2 years You're going to have to pick a side. You can't be an atheist that dabbles in Catholicism.

I picked vim in the end because I already got really used to the workflow I previously mentioned.

But there are many nice things from Emacs that I really miss. For example magit, various REPL integrations and much better support for functional programming languages. Emacs felt cool and nerdy but I always felt like I was using 1% of it. Many things on the other hand felt much more clunky than I expected (terminals for example). And I don't like all in one philosophy of people reading emails, reading reddit, chatting on IRC all through emacs. I tried many of those things but didn't find it appealing at all.

But if I had to do some serious work in one of the functional languages I can see myself coming back to Emacs pretty easily.

Re: Vim after 15 Years

#85

I was split between using Emacs and Vim for last 2 years (I used Vim for last 6, and learned Emacs 2 years ago). But what made Vim my main editor is fzf and ag, and smooth workflow that I had in terminal. But I have to say, ivy and counsel made my Emacs experience much, much nicer. But I guess that I got too deep into Vim already that I kinda got used to it so much, that I appreciated more that "terminal" workflow.

> I was split between using Emacs and Vim for last 2 years You're going to have to pick a side. You can't be an atheist that dabbles in Catholicism.

I'm a vigorous vim user, and always want to incorporate emacs into my workflow or try to utilize its strength. So far, I just failed several times and the affection to vim grows stronger.

Re: Vim after 15 Years

#86
If you're going to use buffers (which you should), make sure to

    set hidden
otherwise you'll get an error message when you try to swap to a different buffers when you have unsaved changes in your current buffer,

Re: Vim after 15 Years

#87

Vim is the best lightweight single file editor there is. That’s all it should be. If you’re heavily configuring it, you should be able to answer “why is this better than an ide?” Without saying “vim makes me cool”. Also, if you can answer that, please let me know! To me, an IDE is better for everything but what default vim is good at. And if you tell me that typing is faster, please also tell me why that’s relevant!

> And if you tell me that typing is faster, please also tell me why that’s relevant!

Clearly the less understood thing about vim. People keep thinking this means "typing more words", while what it means is "having the change you have in mind faster on your screen". It's not about writing more code, it's about not having your code lagging compared to your brain.

Anyway, to me, this is not even the best feature of vim. The best feature is what vim creator mentioned : its ability to automate repetitive tasks, possibly short living (with macros). It's easy with vim to convert a file without writing a parser, just with macros. So yeah, I prefer to add IDE stuff on top of vim rather than using an other editor.

Re: Vim after 15 Years

#88

An interest plugin I've found recently (Neovim only) is Deoplete, which is basically Ctrl-n on steroids. As you type, it shows a list of completions without any kind of slowdown (on my 4 yo MBA). For some languages, such as TypeScript, it even shows type definitions. It's close to being on-par with the smart completion in IntelliJ. https://github.com/Shougo/deoplete.nvim

There's a bunch of plugins like that, here's a couple of the most popular ones: - https://github.com/prabirshrestha/asyncomplete.vim - https://github.com/lifepillar/vim-mucomplete - https://github.com/roxma/nvim-completion-manager - https://github.com/Valloric/YouCompleteMe

You missed https://github.com/maralla/completor.vim - one of the first async ones targeting vim8, later gaining neovim support. It doesn't look like it's easily extensible though, aside from using omnicompletion, which negates the async benefits.

Note that mucomplete isn't async, it's intended to be simple.

Re: Vim after 15 Years

#89
post #14

I'm an avid tmux+neovim user, too, though working with Reason is a lot easier in VS Code. Making the switch from actual vim to fake vim (ie JS emulation) sucks. Recently, VSCodeVim merged #1725 to add actual neovim as an editor - it's using NeoVim's embedding API so you're using neovim to edit the text file inside of VSCode's chrome, including all of VSCode's type hints and popups. Info here: https://github.com/VSCod…

I actually have moved from VIM (I had an Amiga that I learned Vim on) to VS Code. The Vim plugin is just great but the VS Code ecosystem id great and when I switched was much fast than Atom. If people can look past their Electron Bias they might actually find a great open source tool.

Re: Vim after 15 Years

#90

Earlier quoted context omitted.

This is the FIRST time when a "Emacs is a nice OS, all it's missing is a decent text editor" joke would be appropriate. If 20 years ago you would have told me we gonna have Vim inside a text editor inside a web browser I would have thought you are insane.

BTW, it does have a decent text editor. It's called Evil :)

Spacemacs you mean ;)
Post reply on HN