AIX下VIM的安装
2014-04-13 16:11
375 查看
在AIX下安装vim有些需要注意的地方:
1.先从官网下载http://www.vim.org/ 最新的vim(截止2014-04-13
VIM的最新版本是7.4)
如果懒得找就用我这个地址:http://ftp.tw.vim.org/pub/vim/unix/vim-7.4.tar.bz2
其他版本可以在这里找到:http://ftp.tw.vim.org/pub/vim/unix/
2.下载下来之后,直接上传到主机上
如果主机上没有安装bzip2可以在windows下解压之后再上传
3.进入解压目录的源文件夹中:
4.安装
1)如果没有root权限可以先指定安装目录:
/home/css_app/soft/ #表示指定的安装目录
--enable-multibye #使用VIM的encoding,fileecncodings等设置
准备工作如果没什么问题就可以编译了
编译过程如果报错:
ERROR: Undefined symbol: .Xutf8SetWMProperties
是因为在Xutf8SetWMProperties是linux函数库中的函数unix中没有,该函数在文件:os_unix.c中,可以将他们屏蔽
这个函数的作用是定义可以在这里查到:http://www.pps.univ-paris-diderot.fr/~jch/software/UTF8_STRING/
The XmbSetWMProperties and Xutf8SetWMProperties convenience functions provide a simple programming interface
for setting those essential window properties that are used for communicating with other clients (particularly window and session managers).
简而言之就是用来定义与其他客户端通信时的编码
5.将vim添加到环境变量中:
vi ~/.bash_profile
export PATH=/home/css_app/bin:$ORACLE_HOME/bin:/urs/ccs/bin:/bin:/usr/bin:$PATH:.
:wq
这时候已经可以使用vim。
6.如果需要vim的语法高亮功能,可以按照如下步骤进行配置:
拷贝一份VIM的配置文件
cp /home/css_app/share/vim/vim74/vimrc_example.vim ~/.vimrc
修改文件:vim ~/.vimrc #在结尾添加:
1.先从官网下载http://www.vim.org/ 最新的vim(截止2014-04-13
VIM的最新版本是7.4)
如果懒得找就用我这个地址:http://ftp.tw.vim.org/pub/vim/unix/vim-7.4.tar.bz2
其他版本可以在这里找到:http://ftp.tw.vim.org/pub/vim/unix/
2.下载下来之后,直接上传到主机上
如果主机上没有安装bzip2可以在windows下解压之后再上传
bzip2 -d vim-7.4.tar.bz2 | tar xf - #解压文件
3.进入解压目录的源文件夹中:
cd /home/css_app/vim/vim74/src
4.安装
1)如果没有root权限可以先指定安装目录:
export CC=gcc export CFLAGS="-q64 -DOLDXAW" #64位处理器必须加上-q64选项,-DOLDXAW为了更好的兼容性 export LDFLAGS=-q64 #64位处理器必须加上此选项 export STRIP="strip -X64" #64位处理器必须加上此选项 ./configure --prefix=/home/css_app/soft/ --enable-multibyte --disable-
/home/css_app/soft/ #表示指定的安装目录
--enable-multibye #使用VIM的encoding,fileecncodings等设置
准备工作如果没什么问题就可以编译了
make #编译 make install #安装
编译过程如果报错:
ERROR: Undefined symbol: .Xutf8SetWMProperties
是因为在Xutf8SetWMProperties是linux函数库中的函数unix中没有,该函数在文件:os_unix.c中,可以将他们屏蔽
这个函数的作用是定义可以在这里查到:http://www.pps.univ-paris-diderot.fr/~jch/software/UTF8_STRING/
The XmbSetWMProperties and Xutf8SetWMProperties convenience functions provide a simple programming interface
for setting those essential window properties that are used for communicating with other clients (particularly window and session managers).
简而言之就是用来定义与其他客户端通信时的编码
5.将vim添加到环境变量中:
vi ~/.bash_profile
export PATH=/home/css_app/bin:$ORACLE_HOME/bin:/urs/ccs/bin:/bin:/usr/bin:$PATH:.
:wq
这时候已经可以使用vim。
6.如果需要vim的语法高亮功能,可以按照如下步骤进行配置:
拷贝一份VIM的配置文件
cp /home/css_app/share/vim/vim74/vimrc_example.vim ~/.vimrc
修改文件:vim ~/.vimrc #在结尾添加:
if &term =~ "xterm" || &term =~ "vt100" || &term =~ "ansi" if has("terminfo") set t_Co=8 set t_Sf=^[[3%p1%dm set t_Sb=^[[4%p1%dm else set t_Co=8 set t_Sf=^[[3%dm set t_Sb=^[[4%dm endif endif syntax on
相关文章推荐
- [转]在AIX操作系统上安装使用VIM的注意事项
- AIX上安装vim
- AIX上安装vim7.3最正确的步骤,已验证通过。
- 在AIX操作系统上安装使用VIM的注意事项
- AIX服务(Unix系统)下安装Vim
- 在Cygwin上安装编辑器vim
- Ubuntu下编译安装稳定版gvim vim 7.3
- Centos安装vim
- linux下安装中文输入法及vim支持中文的方法
- vim 中Ctags的安装和使用
- Ubuntu安装Vim编辑器
- aix6.1 openssh安装
- vim强大工具YCM安装汇总
- 在freebsd下安装vim(Debian下类似)
- ubuntu中源码安装编译Vim
- CentOs 7下vim安装YouCompleteMe插件
- 给VIM安装插件。让ubuntu的vim强大起来
- vim youcompleteme插件安装
- 安装bashell on AIX 5.3
- linux utf-8及gbk编码环境安装配置强大的vim