gvim 启动太慢

升级到Ubuntu12.04后,在console下启动gvim,长时间内无法输入,发现是由于ibus导致的。

使用-f参数可以实现快速启动。

1
2
3
4
5
6
-f          Foreground.   For  the  GUI  version, Vim will not fork and
             detach from the shell it was started in.  On the Amiga, Vim
             is  not restarted to open a  new  window.  This option should
             be used when Vim is executed by a program  that  will  wait
             for   the  edit session to finish (e.g. mail).  On the Amiga
             the  ":sh"  and  ":!"  commands will not work.

因此在console下启动

1
gvim -f

由于每次输入-f参数,可能显得比较繁琐,可在~/.bashrc中加入如下代码。

1
alias  gvim="gvim -f 2> /dev/null

2>表示标准错误输出STDERR,意即抛弃标准错误输出;0>表示标准输入,1>表示标准输出。

这样在console下,输入gvim,即可实现快速启动。

1
$gvim

 

转载于:https://www.cnblogs.com/JimMoriarty/p/3414022.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值