Live data from Hacker News

Show HN: Build your own Vim emulation for VS Code

johtela.github.io

1–10 of 51 posts

Re: Show HN: Build your own Vim emulation for VS Code

#2
This is an interesting approach. I find the popular vim emulation extension (vscodevim) is a bit buggy and has lots of "uncanny valley" gaps.

At work I use vscodevim, and at home I use vim with TypeScript plugins. Both approaches have lots of annoyances. Maybe a weekend dedicated to ModalEdit could give me the experience I'm really after. I'm also excited for Oni Vim 2, which is a commercial product who's promise is to provide the best of both vim and VS Code.

Re: Show HN: Build your own Vim emulation for VS Code

#3
I feel like this is missing the point of Vim a little bit. It's not about using hjkl instead of arrow keys. It's about progressively learning a vast and useful language specifically made for editing text efficiently. And then realizing you can use every single part of that language in a macro. And then realizing you can use that same language to orchestrate those macros.

Re: Show HN: Build your own Vim emulation for VS Code

#4
post #2

This is an interesting approach. I find the popular vim emulation extension (vscodevim) is a bit buggy and has lots of "uncanny valley" gaps. At work I use vscodevim, and at home I use vim with TypeScript plugins. Both approaches have lots of annoyances. Maybe a weekend dedicated to ModalEdit could give me the experience I'm really after. I'm also excited for Oni Vim 2, which is a commercial product who's promise is…

Have you tried the neovim integration setting? I find that almost everything works as I would expect it to nowadays.

Re: Show HN: Build your own Vim emulation for VS Code

#5
Why use VSCode at all then? I've found coc.nvim and language servers to be every bit as good as VSCode in terms of code completion and definitions.

I'm mostly writing Go, C, Javascript, and HTML/CSS. But, so far it's been working great. And, I'm a fairly recent convert to vim (neovim).

Re: Show HN: Build your own Vim emulation for VS Code

#6
Vim's power doesn't come from using single-letter commands to do things but, rather, in the language-like (action, verb, noun) expressions the whole ecosystem enables: "daw" to delete a word, "cit" to replace the "inner" part of a tag and start typing, numbered prefixes to execute an action that number of times, etc.

See also: https://stackoverflow.com/questions/1218390/what-is-your-mos... aka "Your problem with Vim is that you don't grok vi."

Re: Show HN: Build your own Vim emulation for VS Code

#7
post #6

Vim's power doesn't come from using single-letter commands to do things but, rather, in the language-like (action, verb, noun) expressions the whole ecosystem enables: "daw" to delete a word, "cit" to replace the "inner" part of a tag and start typing, numbered prefixes to execute an action that number of times, etc. See also: https://stackoverflow.com/questions/1218390/what-is-your-mos... aka "Your problem with Vim…

One of the best resources that I have used (in the distant past) is vim golf[1]. It's a super fun way to level up your vim skills.

[1] https://www.vimgolf.com/

Re: Show HN: Build your own Vim emulation for VS Code

#8
post #4
post #2

This is an interesting approach. I find the popular vim emulation extension (vscodevim) is a bit buggy and has lots of "uncanny valley" gaps. At work I use vscodevim, and at home I use vim with TypeScript plugins. Both approaches have lots of annoyances. Maybe a weekend dedicated to ModalEdit could give me the experience I'm really after. I'm also excited for Oni Vim 2, which is a commercial product who's promise is…

Have you tried the neovim integration setting? I find that almost everything works as I would expect it to nowadays.

this one or something else? https://marketplace.visualstudio.com/items?itemName=asvetlia...

I've been waiting for someone to make that work before diving into vscode and if it's solid looks like I have my weekend project.

Re: Show HN: Build your own Vim emulation for VS Code

#9
post #6

Vim's power doesn't come from using single-letter commands to do things but, rather, in the language-like (action, verb, noun) expressions the whole ecosystem enables: "daw" to delete a word, "cit" to replace the "inner" part of a tag and start typing, numbered prefixes to execute an action that number of times, etc. See also: https://stackoverflow.com/questions/1218390/what-is-your-mos... aka "Your problem with Vim…

And then you start recording those expressions into macros just by pressing q. Or just repeat the last one with a period. Vim is so great in so many ways, I always have to use a Vim emulation layer when using Visual Studio.

Re: Show HN: Build your own Vim emulation for VS Code

#10
post #4
post #2

This is an interesting approach. I find the popular vim emulation extension (vscodevim) is a bit buggy and has lots of "uncanny valley" gaps. At work I use vscodevim, and at home I use vim with TypeScript plugins. Both approaches have lots of annoyances. Maybe a weekend dedicated to ModalEdit could give me the experience I'm really after. I'm also excited for Oni Vim 2, which is a commercial product who's promise is…

Have you tried the neovim integration setting? I find that almost everything works as I would expect it to nowadays.

As an advanced (neo)vim user, I respectfully disagree. Vim integration in VS Code is sluggish and buggy (see folds and macros, for example).
Post reply on HN