Live data from Hacker News

Vim after 15 Years

statico.github.io

61–70 of 176 posts

Re: Vim after 15 Years

#61
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…

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.

Re: Vim after 15 Years

#62

As a former Vim user I'm happy to see a post like that ! Some old problems mentionned in the post like asynchronous processes mostly, but also the lack of smart indentation with the TAB key that also takes into account the type of file you're editing really drove me out of Vim. I've since switched to Emacs (with Evil mode because modal editors rocks), and I haven't looked back since.

Smart indentation in VIM has been solved by plugins for a long time now.

Re: Vim after 15 Years

#63
post #46

I would not remap , and ; as the article suggests, since those keys are already used in Vim for repeating f/F/t/T.

I have not heard any good argument for a leader key better than . f, t, b for fzf (and t is not a stretch on my keyboard layout)

> (and t is not a stretch on my keyboard layout)

Colemak?

Re: Vim after 15 Years

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

On Chrom(e|ium), SurfingKeys[1] is an excellent extension.

[1]: https://github.com/brookhong/Surfingkeys

Re: Vim after 15 Years

#65
Does anyone know of a good approach to debugging .vim files? I've not been able to find an interactive debugger or really even a good source of information about the program model of the vimscript interpreter.

Re: Vim after 15 Years

#66
post #46

I would not remap , and ; as the article suggests, since those keys are already used in Vim for repeating f/F/t/T.

I remapped , to ; and vice-versa - comma repeating the search in its actual direction and semicolon repeating it in the reverse direction just makes more sense on a german keyboard.

But yes, these keys' intended functions are actually really damn handy, and I use them on a daily basis.

Re: Vim after 15 Years

#67
post #46

I would not remap , and ; as the article suggests, since those keys are already used in Vim for repeating f/F/t/T.

I have not heard any good argument for a leader key better than . f, t, b for fzf (and t is not a stretch on my keyboard layout)

The only thing preventing me from using is the slight lag it introduce each time is used in insert mode.

It is bearable with ',', but I cannot stand it with .

If it is possible to remove completely this lag (not simply reduce it), then it would be awesome.

Re: Vim after 15 Years

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

Re: Vim after 15 Years

#69

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!

> Vim is the best lightweight single file editor there is.

Are you serious? Do you know about Vim buffers? The `:b` command? The `Ctrl + 6` command? The `m` and `'` commands? These commands alone make Vim a far superior multi-file editor than anything else I have seen.

Now if you add plugins like `NerdTree`, `CtrlP` or `fzf` to the list, I don't think there is any other editor on the planet with the exception of emacs that comes anywhere close to multi-file editing productivity that Vim can offer.

Re: Vim after 15 Years

#70

Interesting read, I've been using Vim for some 18 years myself and I was completely unaware of fzf. However, I'm curious if you know `rg` (aka. ripgrep): https://github.com/BurntSushi/ripgrep In my experience it's markedly faster than `ag` (which is markedly faster than `grep`).

Also check out fzy: https://github.com/jhawthorn/fzy

Then you should also check out vim-picker[1] which integrates Vim and fzy very nicely (instead of the barely usable example in fzy's README).

[1] https://github.com/srstevenson/vim-picker

Post reply on HN