海运的博客

Vim将gui2term.py配色转换为终端配色

发布时间:December 16, 2012 // 分类:Vim // No Comments

Vim下的主题配色大部分都是为GUI下设置的,在终端下配置为相同配色相差极大,可以使用gui2term.py将GUI本色转换为终端配色。
首先终端需开启256色,VIM配置开启256色:

set t_Co=256 

最新版gui2term.py需pytho3.0环境支持:

apt-get install python3

使用gui2term.py转换配色示例:

wget -O gui2term.py http://www.vim.org/scripts/download_script.php?src_id=16205
cp /usr/share/vim/vim72/rgb.txt ./
python3 gui2term.py gui.vim ter.vim
#个别配色如有终端配色请删除term部分后再转换

我转换的一些经典配色:https://github.com/foxconndmd/vim-colors-xterm
vim-xterm-colors:https://github.com/KevinGoodsell/vim-xterm-colors
vimcolorschemetest:http://code.google.com/p/vimcolorschemetest/

Cygwin使用Vim插件管理器Vundle错误error setting certificate verify locations解决

发布时间:December 16, 2012 // 分类:Vim,Cygwin // No Comments

Cygwin下使用Vundle通过Github安装VIM插件时提示以下错误:

error: error setting certificate verify locations:
CAfile: /usr/ssl/certs/ca-bundle.crt
CApath: none while accessing https://github.com/
fatal: HTTP request failed

通过apt-cyg安装ca-certificates解决:

apt-cyg install ca-certificates

或跳过CA验证:

export GIT_SSL_NO_VERIFY=1

CentOS5编译升级VIM为7.3版本及安装中文帮助文档

发布时间:December 15, 2012 // 分类:Vim // No Comments

CentOS5自带VIM为2006年的7.0版本,现在很多插件都是针对7.3开发的,决定编译升级VIM7.3版。
编译安装VIM7.3:

cd /usr/local/src/
wget ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2
tar jxvf vim-7.3.tar.bz2 
cd vim73/
./configure --prefix=/usr/local/vim --enable-multibyte
#--enable-multibyte开启多字符编码,必选,不然VIM中文乱码。
make
make install

使用VIM7.3替换系统自带的VIM7.0:

alias vim='/usr/local/vim/bin/vim'

或删除系统自带的VIM7.0:

rpm -e vim-enhanced

安装VIM中文帮助文档:

wget http://sourceforge.net/projects/vimcdoc/files/vimcdoc/1.8.0/vimcdoc-1.8.0.tar.gz
tar zxvf vimcdoc-1.8.0.tar.gz 
cd vimcdoc-1.8.0/
./vimcdoc.sh -I

编辑VIM配置设置帮助为中文:

set helplang=cn

CentOS下安装VIM

发布时间:November 29, 2012 // 分类:Vim // No Comments

Centos默认自带VI,功能没VIM丰富,安装VIM取代VI。
Yum查找源中的VIM包,不知安装哪个合适。

yum search vim
vim-X11.i386 : The VIM version of the vi editor for the X Window System.
vim-common.i386 : The common files needed by any version of the VIM editor.
vim-enhanced.i386 : A version of the VIM editor which includes recent enhancements.
vim-minimal.i386 : A minimal version of the VIM editor.

到已安装VIM的系统中查看VIM属于哪个软件包:

which vim
/usr/bin/vim
rpm -qf /usr/bin/vim
vim-enhanced-7.0.109-7.el5

安装VIM:

yum install vim-enhanced

Vim快捷键图片详解

发布时间:July 3, 2012 // 分类:Vim // No Comments

高清大图,可设置为桌面。
vim.png

分类
最新文章
最近回复
  • 海运: 恩山有很多。
  • swsend: 大佬可以分享一下固件吗,谢谢。
  • Jimmy: 方法一 nghtp3步骤需要改成如下才能编译成功: git clone https://git...
  • 海运: 地址格式和udpxy一样,udpxy和msd_lite能用这个就能用。
  • 1: 怎么用 编译后的程序在家里路由器内任意一台设备上运行就可以吗?比如笔记本电脑 m参数是笔记本的...
  • 孤狼: ups_status_set: seems that UPS [BK650M2-CH] is ...
  • 孤狼: 擦。。。。apcupsd会失联 nut在冲到到100的时候会ONBATT进入关机状态,我想想办...
  • 海运: 网络,找到相应的url编辑重发请求,firefox有此功能,其它未知。
  • knetxp: 用浏览器F12网络拦截或监听后编辑重发请求,修改url中的set为set_super,将POS...
  • Albert: 啊啊啊啊啊啊啊啊啊 我太激动了,终于好了英文区搜索了半天,翻遍了 pve 论坛没找到好方法,博...