---
title: "debian 7 gvim 奇怪warning"
author: "chenqi210"
date: "2015-01-18T15:00:36Z"
tags: []
categories: ["开源软件"]
slug: "debian-7-gvim-warning"
draft: false
lastmod: "2015-01-18T15:00:36Z"
id: 2022466
url: "https://chenqi210.iteye.com/blog/2022466"
---

最近在命令行里启动gvim 时总是会弹出一个warning，非常烦人。warning 如下：

(gvim:16014): GLib-GObject-WARNING \*\*: cannot retrieve class for invalid (unclassed) type \`&lt;invalid&gt;

（前面的数字会变）

 

http://askubuntu.com/questions/361180/gvim-glib-gobject-warning-in-ubuntu-13-10 写道

Thanks dude untill we find a genuine solution it will work – naveen.panwar Nov 13 '13 at 14:14  
add comment  
up vote 0 down vote

After checking your suggestions I learned that I had both vim-gnome and vim-gtk installed.

This issue was solved for me by removing vim-gnome and simply keeping vim-gtk.

 检查了一下，果然是两个都装了。于是把vim-gnome 卸掉，只留一个vim-gtk，结果真的好了。