有很多关于vim
和notepad++
的问题和答案,但是它们并不明确,如果可能的话,如何使notepad++
像vim
一样表现最佳。
更新
看起来这个问题需要一些额外的信息来解释我的动机。我认为自己是一个vim初学者。一下子改变我的编辑器对我来说相当困难。我认为我的当前编辑器中的vim插件可以为我在新环境中更轻松地感受到舒适带来便利。
有很多关于vim
和notepad++
的问题和答案,但是它们并不明确,如果可能的话,如何使notepad++
像vim
一样表现最佳。
更新
看起来这个问题需要一些额外的信息来解释我的动机。我认为自己是一个vim初学者。一下子改变我的编辑器对我来说相当困难。我认为我的当前编辑器中的vim插件可以为我在新环境中更轻松地感受到舒适带来便利。
您可以尝试使用ViSimulator插件来扩展Notepad++的功能,它可以让您在Notepad++中像vi/vim一样编辑文本。ViSimulator模拟/仿真了vi/vim中最常用的命令,从而为Notepad++提供更强大的编辑功能。
根据该网站的描述,ViSimulator支持以下一些命令:
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...
ViSimulator可以通过https://web.archive.org/web/20150515145616/http://www.visimulator.com/download.html访问。原始页面已不再提供。
ciw
来删除当前单词(无论当前位置在单词内部的哪个位置),并进入插入模式。 - northbenVim之所以成为它所是的大部分原因来自于它是一个模态编辑器。如果没有办法将NP++转变成模态编辑器,你就无法进一步深入学习。在NP++插件页面的快速查看显示没有Vi[m]插件,所以我的回答是“不行”。
无论如何,学习Vim的最佳方式就是使用它。我建议你在处理重要工作时继续使用NP ++,并强迫自己在其他所有方面都使用Vim。一旦准备好了,放弃NP++,全职使用Vim。
在Notepad++中,有一个ViSimulator插件。你可以通过以下两种方式安装该插件。
通过Notepad++插件管理器安装。进入Notepad菜单 Plugins -> Plugin Manager -> Show plugin manager。在弹出的对话框中,选择“available”选项卡,在插件列表中选择“visimulator”。然后点击“install”按钮完成安装。
手动安装。从ViSimulator下载页面下载插件,作为dll文件。进入Notepad++安装目录下的plugins文件夹,将dll文件复制粘贴到此处。重新启动Notepad++,你就可以看到一个名为“ViSimulator”的菜单选项,位于主菜单“Plugins”下方。
有Vi模拟器插件!
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
/ is a synonym of standard npp search/replace dialog.
: seems not working.