我在我的vimrc中得到了这个:
:so menu_format.vim在menu_format.vim中,是这样的:
"... other menu items that work
menu Format.nbsp_space <ESC>:%s@ @ @gec<CR> //(the 1st blank is 0xa0, the 2nd is 0x20)
"... other menu items that work在Windows上它可以工作(已经使用了一段时间),但在Linux Mint 17 vim上提供了:
E319: Sorry, the command is not available in this version.我在命令行上尝试了%s@ @ @gec,它也工作了!
我知道如何解决这个问题:%s@[\xa0]@ @gec就行了。我只是想知道为什么会有这样的差异,这让我怀疑我的vim脚本的可移植性。
顺便说一句,我用相同的配置在Linux和Windows上构建了vim (7.4.560),两者使用相同的menu_format.vim。
发布于 2015-01-06 05:21:27
看起来您只有一个名为vim-tiny的最小版本的Vim;它只提供了一个与vi兼容的最小实现。E319表示:menu命令不可用,:substitute看起来没有问题,应该可以工作。
要获得完整的Vim (和图形化GVIM),请安装以下软件包:
$ sudo apt-get install vim-gnomehttps://stackoverflow.com/questions/27782264
复制相似问题