程序员

ubuntu14.04 terminator与vim的问题

2016-05-17  本文已影响339人  一书and一世界

作者:blue(又名一书and一世界)我的github


适用对象:ubuntu使用者


问题:terminator+vim乱了,最后在国外一篇文章看到解决方法,原来是vim设置的锅。

1.用vim打开一个文件:看起来好像没有问题。。。但是没了很多行东西(其实还在的)

格式乱了

2.用鼠标滚轮滚动一下:

滚动一下

3.或者用键盘方向键操作一下:

全乱了

出现了莫名奇妙的错误。

解决方法:

1.

$cd ~/.vimrc

2.将set lines=50 columns=120这一行改为

" Settings based on whether using vim or gvim...

" gvim

if has("gui_running")

set lines=50 columns=120

set bg=light

" vim

else

set bg=dark

endif

3.具体参考 https://mike-thomson.com/blog/?p=1770



QUOTE: If you are not moving ahead , you are falling behind.

上一篇 下一篇

猜你喜欢

热点阅读