您的位置:首页 > 其它

[转]Ubuntu下两个小细节的调整,如何将vim光标设置为竖线

2012-04-26 09:05 1231 查看
转自:http://www.conanblog.me/notes/adjust-empathy-font-size-and-vim-cursor/

昨天做了两处地方的调整:Empathy的字体大小和vim的光标形状。


Empa­thy的字体大小

修改
/usr/share/adium/message-styles/ubuntu.AdiumMessageStyle/Contents/Resources/main.css
文件里的
.message
里的字号。如果有需要,可以把字体也换了。


Gnome Terminal下VIM的光标形状

默认下,不管是插入状态还是非插入状态,都是小方块,但是我更希望能看到插入时光标变成小竖线。这需要修改vimrc。没有这个文件就创建一个,一般在$HOME下建一个.vimrc就成了。里面添加5行代码:

if has("autocmd")
au InsertEnter * silent execute "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape ibeam"
au InsertLeave * silent execute "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape block"
au VimLeave * silent execute "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape ibeam"
endif
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: