Vim 命令 :Explore :Sexplore :Hexplore 在 cygwin 中不起作用
3.3 在 cywing 2.721 中,安装是使用 cywing 进行的,一切正常,但是当我尝试使用以下命令时。
:Explore
vim 说 E492: Not an editor command
并且 :Sexplore
或 :Hexplore
都不起作用。
有什么办法可以激活这个功能吗?
这是在 Windows XP 的机器上。
3.3 in cywing 2.721, the installation was made using cywing, every thing works but when I try to use the following command.
:Explore
vim said E492: Not an editor command
also neither :Sexplore
or :Hexplore
works.
is there any way to activate this functionality?
This is in machine with windows xp.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
好吧,我解决了阅读
:help usr_01.txt
它说有必要在 vim 内运行这个命令
!cp -i $VIMRUNTIME/vimrc_example.vim ~/.vimrc
,它只是将 .vimrc 复制到家庭用户。我关闭并打开 vim,然后 :Explore、Hexplore、Vexplore 工作了。
Well I solved reading the
:help usr_01.txt
It said that is necessary to run this command
!cp -i $VIMRUNTIME/vimrc_example.vim ~/.vimrc
inside vim, it just copy a .vimrc to home user.I close and opened vim and :Explore, Hexplore, Vexplore worked.
我也有同样的问题。由于它是 Vim 的全新安装,因此您没有 .vimrc (或 Windows 上的 _vimrc)。 vimrc 是 Vim 的配置文件,一旦你拥有一个 Vim 将不再尝试与 Vi 兼容(通常是你想要的)。
因此,您所要做的就是创建一个 vimrc 文件,然后就可以开始
:Explore
了。以下是您可以放置 vimrc 文件的位置以及要使用的文件名。 (取决于您的系统)来源:
* :help '兼容'
* :help 'vimrc'
我还推荐以下
atomsfat
答案也给你一个简单的 vimrc 来开始。I had the same problem as well. Since it's a fresh install of Vim you don't have a .vimrc (or _vimrc on Windows). A vimrc is Vim's configuration file, and once you have one Vim will no longer try to be compatible with Vi (usually what you want).
So all you have to do is create a vimrc file and you should be ready to
:Explore
all you want. Below are locations you can put your vimrc file, and the filename to use for it. (depending on your system)sources:
* :help 'compatible'
* :help 'vimrc'
I also recommend following
atomsfat's
answer as well to give you a simple vimrc to start out with.这些命令由
netrw
插件提供。检查:scriptnames
以查看该插件是否已加载。Those commands are provided by the
netrw
plugin. Check:scriptnames
to see if that plugin is loaded.