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

转自: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


  • 1
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值