73

有很多问题和答案vimnotepad++但并不清楚,什么是让notepad++行为像 a的最佳方法vim(如果可能的话)。

更新
似乎比这个问题需要一些关于我的动机的额外信息。我假设自己是一个 vim 初学者。一时更换编辑器对我来说是相当困难的。我认为我当前编辑器的 vim 插件可以让我更轻松地在新环境中感到更舒适。

4

4 回答 4

49

您可以尝试 ViSimulator for Notepad++,它可能会在一定程度上满足您的要求。它是notepad++的插件,可以在notepad++中编辑为vi/vim。ViSimulator 模拟/模拟最常用的 vi/vim 命令,为 notepad++ 提供更强大的编辑能力。

作为该站点的描述,它支持的一些命令:

0: move the cursor to colum 1 (hard beg-of-line)
$: move the cursor to end-of-line
^: move the cursor to the first non-blank character (soft beg-of-line)
-: move the cursor to the first non-blank character (soft beg-of-line) of the previous [count] line 
+, <RETURN>: move the cursor the first non-blank character (soft beg-of-line) of the next [count] line
hjkl: move the cursor left, down, up and right [count] colum/line
and more...

可以通过 https://web.archive.org/web/20150515145616/http://www.visimulator.com/download.html访问 ViSimulator 。原始页面不再可用。

于 2013-11-24T08:24:28.173 回答
38

使 Vim 成为现在这个样子的大部分原因在于它是一个模态编辑器。如果没有办法将 NP++ 转变为模态编辑器,那么您将不会走得太远。快速浏览NP++ 插件页面显示没有 Vi[m] 插件,所以我会回答“否”。

不管怎样,学习 Vim 的最好方法就是使用它。我建议你继续使用 NP++ 进行严肃的工作,并强迫自己使用 Vim 进行其他所有工作。一次,如果有的话,你会准备好,放弃 NP++ 并全职使用 Vim。

于 2012-10-10T12:03:01.830 回答
3

notepad++ 有 ViSimulator 插件。您可以通过以下两种方式安装插件。

  1. 通过 Notepad++ 插件管理器。转到记事本菜单插件 -> 插件管理器 -> 显示插件管理器。在弹出对话框中,选择“available”选项卡,然后在插件列表中选择“visimulator”。然后点击安装按钮完成。

  2. 手动安装。从 ViSimulator下载页面下载插件,作为 dll 文件。转到 Notepad++ 安装目录 -> 插件文件夹,然后将 dll 文件复制并粘贴到那里。重新启动 Notepad++,一切就绪。您会注意到在主菜单“插件”下还有一个菜单选项 ViSimulator

于 2016-08-07T20:08:35.330 回答
1

有 ViSimulator 插件!

 Version 0.3.0.659 ( ANSI / Unicode ) 

视觉模拟器

ViSimulator for notepad++ is a plug-in for notepad++, which make it possible to edit as vi/vim in notepad++. ViSimulator simulate/emulate most frequently-used vi/vim commands

为notepad++提供更强大的编辑能力。

simon2013 来源:来自下载页面

链接:https ://web.archive.org/web/20150515145616/http://www.visimulator.com/public/p/visimulator.dll

来自 NP++ 插件页面

/ is a synonym of standard npp search/replace dialog.
: seems not working.

对不起,我的英语不好。

于 2013-12-29T21:54:36.480 回答