前不久糗百改版,所以原有的qiushibaike.vim插件用起来会有一些问题,今天有时间就修改了一下. 如图:
下载地址: http://www.vim.org/scripts/script.php?script_id=3083 有不清楚的朋友可以到 用Vim(gvim)看糗事百科查看说明。
作者是 Vim.
发布于 in最后更新于 .
前不久糗百改版,所以原有的qiushibaike.vim插件用起来会有一些问题,今天有时间就修改了一下. 如图:
下载地址: http://www.vim.org/scripts/script.php?script_id=3083 有不清楚的朋友可以到 用Vim(gvim)看糗事百科查看说明。
Pingbacks已打开。
moper on #
额,不太懂额~
Reply
星光居士 on #
好插件!
Reply
ror on #
vim执行的时候出现
vim7.2 + python 2.6 ubuntu 安装的
运行:QB或者:QBHot 出现
处理 function 59_QiuShiBaiKe 时发生错误:
第 73 行:
Traceback (most recent call last):
File “”, line 64, in
File “”, line 45, in QBShow
File “/usr/lib/pymodules/python2.6/BeautifulSoup.py”, line 1499, in __init__
BeautifulStoneSoup.__init__(self, *args, **kwargs)
File “/usr/lib/pymodules/python2.6/BeautifulSoup.py”, line 1230, in __init__
self._feed(isHTML=isHTML)
File “/usr/lib/pymodules/python2.6/BeautifulSoup.py”, line 1263, in _feed
self.builder.feed(markup)
File “/usr/lib/python2.6/HTMLParser.py”, line 108, in feed
self.goahead(0)
File “/usr/lib/python2.6/HTMLParser.py”, line 148, in goahead
k = self.parse_starttag(i)
File “/usr/lib/python2.6/HTMLParser.py”, line 226, in parse_starttag
endpos = self.check_for_whole_start_tag(i)
File “/usr/lib/python2.6/HTMLParser.py”, line 301, in check_for_whole_start_tag
self.error(“malformed start tag”)
File “/usr/lib/python2.6/HTMLParser.py”, line 115, in error
raise HTMLParseError(message, self.getpos())
HTMLParser.HTMLParseError: malformed start tag, at line 11, column 83
Reply
Dante on #
呃。。为啥我是正常的呢。。。
是不是python版本的问题呢,我是2.7
Reply
ror on #
我装了python2.7 和vim7.3才好
Reply
xguru on #
python(默认的vim7.2是支持python2.4的,如果想要2.6的版本,请到 http://www.vimer.cn 下载);
找不到在哪下载2.6版本的
Reply
Dante on #
vim7.3 默认就支持python2.7啦,直接安装python2.7就行啦
Reply
xguru on #
呃,出现这个错误
处理 function 41_QiuShiBaiKe 时发生错误:
第 73 行:
Traceback (most recent call last):
File "", line 64, in
File "", line 43, in QBShow
File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.6/urllib2.py", line 391, in open
response = self._open(req, data)
File "/usr/lib/python2.6/urllib2.py", line 409, in _open
'_open', req)
File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/urllib2.py", line 1161, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.6/urllib2.py", line 1136, in do_open
raise URLError(err)
urllib2.URLError:
Reply
Dante on #
呃,这是python2.6? 是网络不通吗、
Reply
joejph on #
博主,你好,我使用你看糗百的VIM插件的时候,当我从糗百这个buffer切换到另外一个buffer以后,再回去糗百这个buffer里面的内容都没了,切换到另外一个buffer也是在糗百的窗口中切换的,这个有办法解决不?
Reply
Dante on #
嗯? 你说切换buf是在同一个窗口吗?
Reply
joejph on #
对的,在同一个窗口中切换的
Reply
Dante on #
好的,之前没有考虑过这里,我看一下怎么改
Reply
wean on #
哈哈,写python不多,今天装了这个插件,一直出现BadStatusLine错误,改了一段
if len(vim.eval('g:qiushibaike_proxy')) > 0:
opener = urllib2.build_opener( urllib2.ProxyHandler({'http':vim.eval('g:qiushibaike_proxy')}) )
else:
opener = urllib2.build_opener( urllib2.ProxyHandler({}))
urllib2.install_opener( opener )
才好,不知道他是哪边读的proxy设置,xp,ie没设置代理,chrome用了proxy switchy,firefox用了autoproxy
Reply
Dante on #
是不是在vimrc里面配置了g:qiushibaike_proxy?
Reply
wean on #
没配置g:qiushibaike_proxy
Reply