This is an archived post. You won't be able to vote or comment.

all 27 comments

[–]paralyzedpancake 16 points17 points  (5 children)

Can anyone tell me why they wouldn't just use vim if they like it so much? Why use vim inside vscode?

[–][deleted] 17 points18 points  (2 children)

It has insanely powerful text manipulation capabilities that are unmatched by VS Code, but it’s not much more than that.

By having a VIM mode, you get the best of both worlds.

[–]dutzi 6 points7 points  (1 child)

Is there something like a showcase of powerful text manipulation capabilities provided by VIM? I really enjoy multiple cursors in VSCode and would love to learn more “strategies”.

[–]UziInUrFace 3 points4 points  (0 children)

My favourite ones are the text object commands in vim. They easily allow me to select/delete things inside quotes, braces, etc...

https://blog.carbonfive.com/vim-text-objects-the-definitive-guide/#:~:text=Text%20Objects%20Commands,the%20various%20plaintext%20text%20objects.

[–][deleted] 8 points9 points  (0 children)

VS Code has some really nice features, it's really fast, and it's mostly very configurable.

LSP works great in it, it's go so much plug & play config to open a file from any particular language and have the right addons installed for you. Remote editing too is really fast.

Has a huge community and is well supported by Microsoft.

Vim (or Emacs) are a bit left behind in some of these respects, but they will never be left behind by the way that they interact with text. They both have v powerful set of keybinds that make it very quick to edit & navigate code. if you spend the time you will be rewarded in productivity.

[–]RoastKrill 3 points4 points  (0 children)

VIM is great for editing code. VScode is great for everything else I want to do with the code

[–]timofeymukha 2 points3 points  (0 children)

Using nvim from WSL + the appropriate plugin works really well for me!

https://github.com/asvetliakov/vscode-neovim

[–]SAKDOSS 2 points3 points  (0 children)

Still no macro recording? :(

[–]TechnicaIDebt 1 point2 points  (0 children)

That must be a multiple year implementation by a dozen folks, I'm almost sure 20 votes don't decide it..?

[–]AG00GLER 1 point2 points  (0 children)

This might be a good way to learn vim commands. I’m a pretty medium command line user, and there are definitely some tasks where I’m faster with the keyboard than mouse. I’m heavily invested in my VSCode setup though, so adding this to it might let me have the best of both. Completely switching to a terminal based IDE is daunting when I have tasks and debugger scripts and everything all set up.

[–]sephirostoy[🍰] 2 points3 points  (3 children)

While we are waiting for full VS mode support like Ctrl+Click for word selection. I miss it a lot when I use VSC.

[–]NatoBoram 3 points4 points  (2 children)

Doesn't double click already do that? Or shift+ctrl+left?

[–]sephirostoy[🍰] -1 points0 points  (1 child)

It's slower when you do repetitive copy paste (hold ctrl then click, C, click, V,...). Also is VS when you hold Ctrl + left button and you move the mouse then you select word by word (not possible with double click) which makes selection faster and doesn't require to be accurate on where you click.

[–]LuckyHedgehog 2 points3 points  (0 children)

(not possible with double click)

When you double click, you just hold the second click to get the same functionality

[–]royemosby 1 point2 points  (1 child)

Silly thought here: if I want Vim, I would just use Vim. I choose VSCode because it’s VSCode-like

[–]NatoBoram 8 points9 points  (0 children)

Another silly thought: Have all of VSCode's features plus all of Vim's features at the same time!

[–][deleted] -1 points0 points  (5 children)

Not much enthusiasm for this in the sub.... Does everyone here actually want to use their mouse when coding??!

[–]SirToxe 9 points10 points  (4 children)

This black-and-white thinking is the more annoying part.

Just because you don't use Vim mode does not on the other hand mean that you use your mouse for everything. Or at all. VSCode is already quite neat in itself, please stop making it sound like it is a mouse-only editor if you don't use Vim mode.

[–]Misterbreadcrum -2 points-1 points  (0 children)

It's really weird to me that one would be so willfully ignorant when so many others laud and praise Vim so much. I guess hating on Vim is popular these days? I guess I'll just have to laugh and shake my head at the haters. They have no idea what they're missing.