在使用vim配置方案spf13中碰到的一些问题

时间:2015-10-15 18:53:02   收藏:0   阅读:1245

安装spf13之前的准备:

    安装Git:

sudo apt-get install git
sudo apt-get install curl

使用官方给出的方法进行安装并执行https://github.com/spf13/spf13-vim

curl https://j.mp/spf13-vim3 -L > spf13-vim.sh && sh spf13-vim.sh

需要等待一段时间,让脚本自行去下载插件进行安装。


我使用的是tty1这种终端;

安装完成后发现不能自动提示,在命令模式“:”下输入“NeoCompleteEnable”发现不能启动提示

“
It requires Vim 7.3.885 or later with Lua support ("+lua")
”


按照github上的方法安装vim-nox、vim-athena就可以解决问题{传送门}(https://github.com/spf13/spf13-vim/issues/773):

sudo apt-get install vim-nox
sudo apt-get install vim-athena

自动补全不能只能提示

在使用过程中,自动提示的东西不能显示,还是那种插件形式的。

解决方法{传送门}(https://github.com/spf13/spf13-vim/issues/819):

.vimrc.loacl中添加如下代码:

inoremap <expr><CR> neosnippet#expandable() ? neosnippet#mappings#expand_or_jump_impl() : pumvisible() ? neocomplete#close_popup() : "\<CR>"

不显示配色效果:

.vimrc.loacl中添加如下代码【可参考(http://www.cnblogs.com/keepHack/archive/2012/04/09/2439361.html)】:

set t_Co=256

后续遇到的问题,会继续添加

本文出自 “知道的越多越觉得自己渺小” 博客,请务必保留此出处http://johnjohn.blog.51cto.com/4481703/1703262

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!