vim环境配置spf13
来源:互联网 发布:php setlocale 编辑:程序博客网 时间:2024/05/29 12:24
1、ncurses安装
wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gztar -xf ncurses-5.9.tar.gzcd ncurses-5.9./configuremakesudo make install
2、lua安装
- centOS虽然自带了lua,但是安装的时候有几个文件找不到
- http://www.lua.org/download.html
#官网的安装说明curl -R -O http://www.lua.org/ftp/lua-5.3.2.tar.gztar zxf lua-5.3.2.tar.gzcd lua-5.3.2#make linux testmake linuxsudo make install
安装的时候出问题:
error:readline/readline.h:No such file or directory
如果没有安装readline,需要安装
yum install readline
如果已经安装,还有此问题说明,没有安装依赖
yum install readline-devel
3、安装vim
- 如果之前已经安装了vim,查看是否支持lua
vim:version#lua 前面是个+号
- 如果没有,重新安装(无需卸载)
wget ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2tar -xf vim-7.4.tar.bz2cd vim74./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp --enable-luainterp --with-lua-prefix=/usr/localsudo makesudo make install
- 其中
--with-lua-prefix=/usr/local
指的是lua的安装目录 - 可以将
./configure
的输出重定向到一个文件 log
$ cat log | grep luachecking --enable-luainterp argument... yes checking --with-lua-prefix argument... /usr/local checking --with-luajit... no checking for lua... /usr/local/bin/lua checking if lua.h can be found in /usr/local/include... yes checking if link with -L/usr/local/lib -llua is sane... yes
出现上述状况表明可以安装
- 出现的问题:
objects/if_lua.o: In function `luaV_list_insert': /vim74/src/if_lua.c:777: undefined reference to `luaL_optlong' collect2: error: ld returned 1 exit status
修改文件vim74/src/if_lua.c
//long pos = luaL_optlong(L,3,0);long pos = (long)luaL_optinteger(L,3,0);
4、将你的vim的路径添加到.bashrc
文件中
$ find vim#如果不确定安装在何处,使用上面的命令找到所有的vim,看他们的:versionalias vim=/usr/loacl/bin/vim
5、安装spf13
- http://vim.spf13.com/
curl https://j.mp/spf13-vim3 -L -o - | sh
注意是https
有时候安装不成功就是因为使用了官网的用的http
6、自定义的vim设置保存在 .vimrc.local中
0 0
- vim环境配置spf13
- .vimrc配置,spf13-vim
- vim终极配置:spf13-vim
- vim自动配置(插件spf13-vim)
- vim的终极配置spf13-vim
- 最好用的vim配置 spf13-vim
- spf13-vim
- Windows安装spf13-vim配置教程
- spf13-vim设置说明
- Vim—spf13
- vim 插件管理 spf13-vim
- linux下spf13-vim安装
- linux mint上安装vim spf13
- vim环境配置
- 配置vim python 环境
- 配置vim python 环境
- vim 环境配置
- 配置vim python 环境
- java环境配置
- Android TextView(未完善)
- iOS编程修改系统音量
- hdu-1170 Balloon Comes!
- ubuntu如何安装Mac OS X主题
- vim环境配置spf13
- 轻量级JavaEE企业应用实战(七)
- python注释
- hdu-1194 Beat the Spread!
- EventBus详解
- SQL Server 导入和导出 命令打开向导
- 【jQuery】使用toggle()方法绑定多个函数
- android开发的记录
- autocode的demo