Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
求助!VIM下导入(from gi.repository import Gtk) 后,[C-x C-o]崩溃?
社区开发
1858
views ·
0
replies ·
To
floor
Go
dawndiy
deepin
2013-02-07 06:57
Author
最近从 PyGTK 转到 PyGObject ,在VIM下开发GTK3桌面应用。但是出现一个问题:
从 PyGObject 起 GTK 模块就是用 from gi.repository import Gtk 来导入,但是导入这句后,只要在VIM里面用[自动补全, C-x C-o]功能就会崩溃。
Google了看到也有老外谈过这个问题,问题是pythoncomplete的问题。
为了在VIM里面添加自动补全功能我的 .vimrc 是有这句:
58 filetype plugin indent on
59 autocmd FileType python set omnifunc=pythoncomplete#Complete
60 set completeopt=longest,menu "关掉智能补全时的预览窗口
其他的时候[C-x C-o]都能自动补全。但是我的步骤是如下,就不行了:
#!/usr/bin/env python
from gi.repository import Gtk
Gtk.[C-x C-o] #这里就崩溃了
Vim: 拦截到致命信号(deadly signal) TRAP
Vim: 正在保留文件……
Vim: 结束。
请问用VIM的朋友都用什么方式自动补全?但是用了这个的话写Gtk就崩溃,求助解决方法!谢谢啦!
Reply
Like 0
Favorite
View the author
All Replies
No replies yet
Please
sign
in first
New Thread
Popular Ranking
Change
Install problem (09_ostree_sys_init.job hooks)
Closing lid, but display still active.
Display not correctly identified (sort of)
Volume slider jumps away from click
Unable to log in to deepin ID
Wrong taskbar icon
Popular Events
More
从 PyGObject 起 GTK 模块就是用 from gi.repository import Gtk 来导入,但是导入这句后,只要在VIM里面用[自动补全, C-x C-o]功能就会崩溃。
Google了看到也有老外谈过这个问题,问题是pythoncomplete的问题。
为了在VIM里面添加自动补全功能我的 .vimrc 是有这句:
58 filetype plugin indent on
59 autocmd FileType python set omnifunc=pythoncomplete#Complete
60 set completeopt=longest,menu "关掉智能补全时的预览窗口
其他的时候[C-x C-o]都能自动补全。但是我的步骤是如下,就不行了:
#!/usr/bin/env python
from gi.repository import Gtk
Gtk.[C-x C-o] #这里就崩溃了
Vim: 拦截到致命信号(deadly signal) TRAP
Vim: 正在保留文件……
Vim: 结束。
请问用VIM的朋友都用什么方式自动补全?但是用了这个的话写Gtk就崩溃,求助解决方法!谢谢啦!