Live data from Hacker News

Editors (Vim)

missing.csail.mit.edu

21–30 of 120 posts

Re: Editors (Vim)

#21

Vim emulation in VSCode worse than any other IDE I've used. All extensions have to run on the same thread in a background process and intercepted keystrokes are passed to that process over IPC. So if other extensions (like the TS language tools) are tying up the extension host process, the Vim extension can't respond to your keyboard input until other extensions yield. Performance issues come and go but for awhile I…

> I was stuck waiting for several seconds any time I typed

The worst behaviour of any editing environment is a lagging keyboard response.

In this COVID-19 era I've found myself working remotely over VPN and on some occasions the response times become very slow.

The most noticeable observation for me is how frustration writing code becomes whenever my editing environment slows over that lagging VPN.

Tasks that are normally subconscious suddenly turn into mental challenges as you find yourself constantly checking if these subconscious actions actually complete.

Re: Editors (Vim)

#22
post #7

Vim emulation in VSCode worse than any other IDE I've used. All extensions have to run on the same thread in a background process and intercepted keystrokes are passed to that process over IPC. So if other extensions (like the TS language tools) are tying up the extension host process, the Vim extension can't respond to your keyboard input until other extensions yield. Performance issues come and go but for awhile I…

As a long time vim user, I’ve tried VSCode a few times and I cannot for the life of me figure out what all the hype is about. Can anyone who is proficient with it explain the philosophy behind it and what makes it so great? This is a sincere question, not a rhetorical one.

I use vscode daily for everything, from note taking to programming. Here are my pros and cons.

Pros: - Has plugins for anything.You're doing C++, just install C++ plugin and you're good to go. Want vim key bindings there's a plugin for that as well. I use a plugin that can scrape competitive coding websites and automatically create tests for a problem. - Git, snippets, etc all modern IDE features built-in. - It is also found on many websites as an editor.

Cons: - Since it's electron. System requirements are on the higher end.

Re: Editors (Vim)

#23

I respect Vim, I've seen it used with impressive speed, BUT I am so used to command-s to save, that I don't feel ready to :w enter all the time. VS Code is powerful, and learning the keyboard shortcuts for that are getting better every day (command-shift-p format-selection enter).

VScode has a vim plugin. You can easily customise your key bindings as well.

Re: Editors (Vim)

#25

I’m so used to vim as a code editor that I assumed, after the introduction, this article was going to be castigating me for trying to write prose in vim (which I indeed try to do on a regular basis, with what feels like a lot of friction.) Perhaps, as they imply, I should dust off a copy of Microsoft Word and switch back to that!

There is no conflict if you use LaTeX :)

Re: Editors (Vim)

#26

I feel about Vim the way RMS seems to feel about Linux. Even though, (presumably) everyone knows the relationship of vim to vi, I don’t feel there is enough explicit acknowledgement of that fact. Vim is evidently a wonderful tool, (I say this as a confirmed 20 year emacs user for whom emacs is only usable due to excellent vi emulation possibilities) but it clearly wouldn’t exist without the basic foundation provided…

It's hard to sense how much of vi is in vim, having only ever used vim. But I've never been very happy with vim, even though I've used it for 15 years. Maybe I need to find a "vim, the good parts (aka vi)" book.

Re: Editors (Vim)

#27
post #3

I feel like it would be far more useful to just talk about vimtutor . At least for me, it was the only way I was able to grok vim.

This. And if you get to the end of vimtutor, you'll see a recommendation to continue learning via `:help user-manual`. I would have saved myself months of effort trying to learn Vim if I would have just RTFM.

Re: Editors (Vim)

#29
I'm by no means a high level expert of command line, but if I need to do a quick edit I just use nano, and if I need to get down and dirty I use VS Code. Is this abnormal? I know a lot of power users use Vim, but I've just never fallen in love with it.

Re: Editors (Vim)

#30
post #26

I feel about Vim the way RMS seems to feel about Linux. Even though, (presumably) everyone knows the relationship of vim to vi, I don’t feel there is enough explicit acknowledgement of that fact. Vim is evidently a wonderful tool, (I say this as a confirmed 20 year emacs user for whom emacs is only usable due to excellent vi emulation possibilities) but it clearly wouldn’t exist without the basic foundation provided…

It's hard to sense how much of vi is in vim, having only ever used vim. But I've never been very happy with vim, even though I've used it for 15 years. Maybe I need to find a "vim, the good parts (aka vi)" book.

use spacemacs with vim emulation :-)
Post reply on HN