探 自谦 必胜

KISS:Keep It Simple and Stupid

Home / About / Contract / Wiki / Guestbook
396 days ago

vim 颜色配置

经常需要在不同的环境下使用vim, 例如:X下的gvim和urxvt中的vim,或者windows下使用putty中的vim.
下面将配色统一一下, 我比较喜欢的是desert主题

首先在putty中, 已经有人配置好了,直接将改注册表导入即可使用
详见 http://vim.wikia.com/wiki/Desert_color_scheme_with_Vim_in_PuTTY

我现在使用的urxvt版本是9.06,在发布包中附带了256色的补丁,打上即可.
在编译urxvt时, 推荐使用如下参数:


	./configure --prefix=/usr \
		--with-terminfo=/usr/share/terminfo \
		--with-term=rxvt-256color \
		--enable-smart-resize \
		--disable-iso14755 \
		--disable-frills

其中disable-iso14755和disable-frills可以将Ctrl-shift快捷键关掉,避免和输入法冲突

为了能够上screen识别,需要在.screenrc中添加:


terminfo rxvt-unicode 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'

使用 http://www.vim.org/scripts/script.php?script_id=1243 中的desert256主题即可


Commenting is closed for this article.