简体   繁体   English

如何使用 vscode vim 安装 vim 插件?

[英]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.我对 vim 有点陌生,我安装了 vim vscode 插件,所以我可以使用类似 vim 的旋律来操作 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.但是,我曾经在我的终端上安装了 janus(包括 NERDTree、NERDCommenter 等),我想在我的 vim vscode 上安装 NERDCommenter。 How would I go about doing this?我将如何 go 这样做?

This is not possible, you cannot use VIM plugins on the VSCode Vim.这是不可能的,您不能在 VSCode Vim 上使用 VIM 插件。 I am not familiar with NerdCommenter but you can just remap VSCode keys.我对 NerdCommenter 不熟悉,但您可以重新映射 VSCode 键。

Seems like NERD* Plugins is written for vim.似乎 NERD* 插件是为 vim 编写的。

As for VSCode, here is a workaround:至于 VSCode,这里有一个解决方法:

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 .您可以更改Toggle Line Comment的键盘快捷键。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM