简体   繁体   English

.vimrc中的示例neocomplcache设置适用于MacVim,但不适用于Linux控制台vim

[英]A sample neocomplcache setting in .vimrc is work for MacVim , but not work for Linux console vim

I installed neocomplcache for vim in both my computer, macbook air and Linux ubuntu 11.10 I use macVim on macbook air, but I use console vim on ubuntu. 我在我的电脑,macbook air和Linux ubuntu 11.10中为vim安装了neocomplcache我在macbook air上使用macVim,但我在ubuntu上使用console vim。

First,I copied the sample code to the .vimrc of macVIm. 首先,我将示例代码复制到macVIm的.vimrc中。 And it works for my macbook and no errors occurs. 它适用于我的macbook,没有错误发生。

After that,I copied the code to the .vimrc of console vim. 之后,我将代码复制到console vim的.vimrc中。 When I try to run vim on terminal every time. 当我每次尝试在终端上运行vim时。 It tolds me that the following sentence is wrong expression. 它告诉我,下面的句子是错误的表达。

let g:neocomplcache_dictionary_filetype_lists = {\ 'default' : '',
        \ 'vimshell' : $HOME.'/.vimshell_hist',
            \ 'scheme' : $HOME.'/.gosh_completions'
              \ }

Although I cannot see any negative effects on the function of this plugin,(I use java completion) what wrong it is going on?? 虽然我看不到对这个插件的功能有任何负面影响,(我使用java完成)它出了什么问题?

Seems like it is missing a line break before the \\ in s = {\\ ' . 似乎它在\\ s = {\\ '之前缺少换行符。 This can be caused by different newline delimiters (CR vs. LF). 这可能是由不同的换行符分隔符(CR与LF)引起的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM