开发者

Vim commands :Explore :Sexplore :Hexplore doesn't work in cygwin

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 :Hexplor开发者_Python百科e works.

is there any way to activate this functionality?

This is in machine with windows xp.


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.


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)

    Unix/Linux/OSX: $HOME/.vimrc or $HOME/.vim/vimrc

    MS-Windows: $HOME/_vimrc, $HOME/vimfiles/vimrc
            or $VIM/_vimrc

sources:
* :help 'compatible'
* :help 'vimrc'

I also recommend following atomsfat's answer as well to give you a simple vimrc to start out with.


Those commands are provided by the netrw plugin. Check :scriptnames to see if that plugin is loaded.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜