Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I install vim plugins with vscode vim?

I am slightly new to vim, and I installed the vim vscode plugin so I can use vim-like melodies to manipulate code in vscode. However, I used to have janus installed on my terminal (including NERDTree, NERDCommenter, etc) and I want to install NERDCommenter on my vim vscode. How would I go about doing this?

like image 368
oriont Avatar asked Oct 27 '22 21:10

oriont


2 Answers

This is not possible, you cannot use VIM plugins on the VSCode Vim. I am not familiar with NerdCommenter but you can just remap VSCode keys.

like image 58
temujim Avatar answered Nov 15 '22 05:11

temujim


Seems like NERD* Plugins is written for vim.

As for VSCode, here is a workaround:

  • You can download VS Extentions replacement for your plugins.
  • Check out the VSCode Extentions Marketplace to look for your replacement.

There are so many good extentions.It's very likely to find one replacement for you there.

As for comment code:

  • I perfer use + / to comment my selection area.
  • You can change the Keyboard Shortcuts for Toggle Line Comment.
like image 45
s3cret Avatar answered Nov 15 '22 04:11

s3cret