Python论坛  - 讨论区

标题:Re: [python-chinese] ANN:能 够显示python cal ltips的V IM脚本

2004年09月09日 星期四 17:23

梅劲松  stephen.cn at gmail.com
Thu Sep 9 17:23:27 HKT 2004

看到了,不过我上次用这个0。5版的时候和这个不一样的。


On Thu, 9 Sep 2004 17:16:04 +0800, tocer <tootoo at yeah.net> wrote:
> 你收到图片了么,列表上有限制,不能大于60k。
> 如果没收到我再给你发一遍
> 
> 
> ----- Original Message -----
> From: "梅劲松" <stephen.cn at gmail.com>
> To: "tocer" <python-chinese at lists.python.cn>
> Sent: Thursday, September 09, 2004 4:21 PM
> Subject: Re: [python-chinese] ANN:能 够显示python cal ltips的V IM脚本
> 
> 成功了也贴个图上来,我不知道那样是成功,当然也不知道那样是失败的。
> 
> On Thu, 9 Sep 2004 14:18:37 +0800, tocer <tootoo at yeah.net> wrote:
> > 如果失败了,就贴张图给我看看
> > ----- Original Message -----
> > From: "Xiao Xin" <quakelee at gmail.com>
> > To: <python-chinese at lists.python.cn>
> > Sent: Thursday, September 09, 2004 1:53 PM
> > Subject: Re: [python-chinese] ANN:能够显示python cal ltips的VIM脚本
> >
> > > 不太会用哇,上次试了一下,不知道为什么没成功,回家再试试
> > >
> > >
> > > On Wed, 8 Sep 2004 16:02:12 +0800, tocer <tootoo at yeah.net> wrote:
> > > > 终于又有了反馈,挺好。
> > > >
> > > > > 我用的是0.5版本,在gentoo+python2.3+gvim6.3(也尝试过控制台)下,发现显示
> > > > > 有问题,提示和原文件挤在了一起,
> > > >
> > > > 用0.6版试试,http://vim.sourceforge.net/scripts/script.php?script_id=1074
> > > > 如果还不成,贴个屏幕给我看看,我在linux下没用过。
> > > >
> > > > 〉pyfile 也有问题,注释了
> > > > > vim.command("silent botright new Python CallTips Windows")才没报错,不知
> > > > > 是否跟此有关
> > > >
> > > > 0.6版已经解决。
> > > >
> > > > ----- Original Message -----
> > > > From: "jackphil" <jackphilcn at yahoo.com.cn>
> > > > To: <python-chinese at lists.python.cn>
> > > > Sent: Wednesday, September 08, 2004 12:07 PM
> > > > Subject: Re: [python-chinese] ANN:能够显示python calltips的VIM脚本
> > > >
> > > > > tocer:
> > > > >
> > > > > 我用的是0.5版本,在gentoo+python2.3+gvim6.3(也尝试过控制台)下,发现显示
> > > > > 有问题,提示和原文件挤在了一起,pyfile 也有问题,注释了
> > > > > vim.command("silent botright new Python CallTips Windows")才没报错,不知
> > > > > 是否跟此有关
> > > > >
> > > > > WinXP下看起来还好,还没怎么用,只是照说明用dir看了一下
> > > > >
> > > > > 总的来说,真的很不错!
> > > > >
> > > > > >>>>>版本:0.3
> > > > > >>>>>
> > > > > >>>>>运行平台:linux ,windows,VIM
> > > > > >>>>>         我只在中文win2000+vim6.3中测试通过。别的平台,别的vim版本没有测试,如果也能通过,告诉我一声。
> > > > > >>>>>
> > > > > >>>>>特性:
> > > > > >>>>>   1、在vim里编码的时候,可以随着你的输入,自动显示模块或者函数名称和用法,就像idle或者pywin里的calltips,不过我这个脚本还能显示用法和帮助。
> > > > > >>>>>   2、只支持python语言。
> > > > > >>>>>
> > > > > >>>>>用法:
> > > > > >>>>>   1、打开一个python文件,然后pyfile <路径>pyCallTips.py,如果没有报错,就能运行了,在python文件中import的模块和方法,都能够随着你的输入显示出来。支持内建函数,试着输入 dir 看看。或者放入vimrc文件中,自动运行。
> > > > > >>>>>   2、如果新增import 或者 from 。。import语句,需要按刷新一下,这样才能显示出新增的模块和方法
> > > > > >>>>>
> > > > > >>>>>如果有问题,在这里提出来,我会尽量回答的。如果好使,也说一声,让我也高兴高兴。
> > > > > >>>>>
> > > > > >>>>>
> > > > >
> > > > > _______________________________________________
> > > > > python-chinese list
> > > > > python-chinese at lists.python.cn
> > > > > http://python.cn/mailman/listinfo/python-chinese
> > > > >
> > > >
> > > > _______________________________________________
> > > > python-chinese list
> > > > python-chinese at lists.python.cn
> > > > http://python.cn/mailman/listinfo/python-chinese
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > >                                                                            可爱的小新
> > >
> >
> > --------------------------------------------------------------------------------
> >
> > > _______________________________________________
> > > python-chinese list
> > > python-chinese at lists.python.cn
> > > http://python.cn/mailman/listinfo/python-chinese
> > >
> >
> > _______________________________________________
> > python-chinese list
> > python-chinese at lists.python.cn
> > http://python.cn/mailman/listinfo/python-chinese
> >
> >
> >
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
>


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2004年09月09日 星期四 17:27

梅劲松  stephen.cn at gmail.com
Thu Sep 9 17:27:22 HKT 2004

能把你的telnet程序给一个吗?能处理telnet 协议送过来的色彩信息吗?


On Thu, 9 Sep 2004 17:23:27 +0800, 梅劲松 <stephen.cn at gmail.com> wrote:
> 看到了,不过我上次用这个0。5版的时候和这个不一样的。
> 
> 
> 
> 
> On Thu, 9 Sep 2004 17:16:04 +0800, tocer <tootoo at yeah.net> wrote:
> > 你收到图片了么,列表上有限制,不能大于60k。
> > 如果没收到我再给你发一遍
> >
> >
> > ----- Original Message -----
> > From: "梅劲松" <stephen.cn at gmail.com>
> > To: "tocer" <python-chinese at lists.python.cn>
> > Sent: Thursday, September 09, 2004 4:21 PM
> > Subject: Re: [python-chinese] ANN:能 够显示python cal ltips的V IM脚本
> >
> > 成功了也贴个图上来,我不知道那样是成功,当然也不知道那样是失败的。
> >
> > On Thu, 9 Sep 2004 14:18:37 +0800, tocer <tootoo at yeah.net> wrote:
> > > 如果失败了,就贴张图给我看看
> > > ----- Original Message -----
> > > From: "Xiao Xin" <quakelee at gmail.com>
> > > To: <python-chinese at lists.python.cn>
> > > Sent: Thursday, September 09, 2004 1:53 PM
> > > Subject: Re: [python-chinese] ANN:能够显示python cal ltips的VIM脚本
> > >
> > > > 不太会用哇,上次试了一下,不知道为什么没成功,回家再试试
> > > >
> > > >
> > > > On Wed, 8 Sep 2004 16:02:12 +0800, tocer <tootoo at yeah.net> wrote:
> > > > > 终于又有了反馈,挺好。
> > > > >
> > > > > > 我用的是0.5版本,在gentoo+python2.3+gvim6.3(也尝试过控制台)下,发现显示
> > > > > > 有问题,提示和原文件挤在了一起,
> > > > >
> > > > > 用0.6版试试,http://vim.sourceforge.net/scripts/script.php?script_id=1074
> > > > > 如果还不成,贴个屏幕给我看看,我在linux下没用过。
> > > > >
> > > > > 〉pyfile 也有问题,注释了
> > > > > > vim.command("silent botright new Python CallTips Windows")才没报错,不知
> > > > > > 是否跟此有关
> > > > >
> > > > > 0.6版已经解决。
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "jackphil" <jackphilcn at yahoo.com.cn>
> > > > > To: <python-chinese at lists.python.cn>
> > > > > Sent: Wednesday, September 08, 2004 12:07 PM
> > > > > Subject: Re: [python-chinese] ANN:能够显示python calltips的VIM脚本
> > > > >
> > > > > > tocer:
> > > > > >
> > > > > > 我用的是0.5版本,在gentoo+python2.3+gvim6.3(也尝试过控制台)下,发现显示
> > > > > > 有问题,提示和原文件挤在了一起,pyfile 也有问题,注释了
> > > > > > vim.command("silent botright new Python CallTips Windows")才没报错,不知
> > > > > > 是否跟此有关
> > > > > >
> > > > > > WinXP下看起来还好,还没怎么用,只是照说明用dir看了一下
> > > > > >
> > > > > > 总的来说,真的很不错!
> > > > > >
> > > > > > >>>>>版本:0.3
> > > > > > >>>>>
> > > > > > >>>>>运行平台:linux ,windows,VIM
> > > > > > >>>>>         我只在中文win2000+vim6.3中测试通过。别的平台,别的vim版本没有测试,如果也能通过,告诉我一声。
> > > > > > >>>>>
> > > > > > >>>>>特性:
> > > > > > >>>>>   1、在vim里编码的时候,可以随着你的输入,自动显示模块或者函数名称和用法,就像idle或者pywin里的calltips,不过我这个脚本还能显示用法和帮助。
> > > > > > >>>>>   2、只支持python语言。
> > > > > > >>>>>
> > > > > > >>>>>用法:
> > > > > > >>>>>   1、打开一个python文件,然后pyfile <路径>pyCallTips.py,如果没有报错,就能运行了,在python文件中import的模块和方法,都能够随着你的输入显示出来。支持内建函数,试着输入 dir 看看。或者放入vimrc文件中,自动运行。
> > > > > > >>>>>   2、如果新增import 或者 from 。。import语句,需要按刷新一下,这样才能显示出新增的模块和方法
> > > > > > >>>>>
> > > > > > >>>>>如果有问题,在这里提出来,我会尽量回答的。如果好使,也说一声,让我也高兴高兴。
> > > > > > >>>>>
> > > > > > >>>>>
> > > > > >
> > > > > > _______________________________________________
> > > > > > python-chinese list
> > > > > > python-chinese at lists.python.cn
> > > > > > http://python.cn/mailman/listinfo/python-chinese
> > > > > >
> > > > >
> > > > > _______________________________________________
> > > > > python-chinese list
> > > > > python-chinese at lists.python.cn
> > > > > http://python.cn/mailman/listinfo/python-chinese
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > >                                                                            可爱的小新
> > > >
> > >
> > > --------------------------------------------------------------------------------
> > >
> > > > _______________________________________________
> > > > python-chinese list
> > > > python-chinese at lists.python.cn
> > > > http://python.cn/mailman/listinfo/python-chinese
> > > >
> > >
> > > _______________________________________________
> > > python-chinese list
> > > python-chinese at lists.python.cn
> > > http://python.cn/mailman/listinfo/python-chinese
> > >
> > >
> > >
> > _______________________________________________
> > python-chinese list
> > python-chinese at lists.python.cn
> > http://python.cn/mailman/listinfo/python-chinese
> >
>


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2004年09月09日 星期四 17:42

tocer tootoo at yeah.net
Thu Sep 9 17:42:28 HKT 2004

这个程序使我从网上考得,做试验用的,对于telnet协议我不懂。

见附件

----- Original Message ----- 
From: "梅劲松" <stephen.cn at gmail.com>
To: "tocer" <python-chinese at lists.python.cn>
Sent: Thursday, September 09, 2004 5:27 PM
Subject: Re: [python-chinese] ANN:能 够显示python ca l ltips的V IM脚本


能把你的telnet程序给一个吗?能处理telnet 协议送过来的色彩信息吗?


On Thu, 9 Sep 2004 17:23:27 +0800, 梅劲松 <stephen.cn at gmail.com> wrote:
> 看到了,不过我上次用这个0。5版的时候和这个不一样的。
> 
> 
> 
> 
> On Thu, 9 Sep 2004 17:16:04 +0800, tocer <tootoo at yeah.net> wrote:
> > 你收到图片了么,列表上有限制,不能大于60k。
> > 如果没收到我再给你发一遍
> >
> >
> > ----- Original Message -----
> > From: "梅劲松" <stephen.cn at gmail.com>
> > To: "tocer" <python-chinese at lists.python.cn>
> > Sent: Thursday, September 09, 2004 4:21 PM
> > Subject: Re: [python-chinese] ANN:能 够显示python cal ltips的V IM脚本
> >
> > 成功了也贴个图上来,我不知道那样是成功,当然也不知道那样是失败的。
> >
> > On Thu, 9 Sep 2004 14:18:37 +0800, tocer <tootoo at yeah.net> wrote:
> > > 如果失败了,就贴张图给我看看
> > > ----- Original Message -----
> > > From: "Xiao Xin" <quakelee at gmail.com>
> > > To: <python-chinese at lists.python.cn>
> > > Sent: Thursday, September 09, 2004 1:53 PM
> > > Subject: Re: [python-chinese] ANN:能够显示python cal ltips的VIM脚本
> > >
> > > > 不太会用哇,上次试了一下,不知道为什么没成功,回家再试试
> > > >
> > > >
> > > > On Wed, 8 Sep 2004 16:02:12 +0800, tocer <tootoo at yeah.net> wrote:
> > > > > 终于又有了反馈,挺好。
> > > > >
> > > > > > 我用的是0.5版本,在gentoo+python2.3+gvim6.3(也尝试过控制台)下,发现显示
> > > > > > 有问题,提示和原文件挤在了一起,
> > > > >
> > > > > 用0.6版试试,http://vim.sourceforge.net/scripts/script.php?script_id=1074
> > > > > 如果还不成,贴个屏幕给我看看,我在linux下没用过。
> > > > >
> > > > > 〉pyfile 也有问题,注释了
> > > > > > vim.command("silent botright new Python CallTips Windows")才没报错,不知
> > > > > > 是否跟此有关
> > > > >
> > > > > 0.6版已经解决。
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "jackphil" <jackphilcn at yahoo.com.cn>
> > > > > To: <python-chinese at lists.python.cn>
> > > > > Sent: Wednesday, September 08, 2004 12:07 PM
> > > > > Subject: Re: [python-chinese] ANN:能够显示python calltips的VIM脚本
> > > > >
> > > > > > tocer:
> > > > > >
> > > > > > 我用的是0.5版本,在gentoo+python2.3+gvim6.3(也尝试过控制台)下,发现显示
> > > > > > 有问题,提示和原文件挤在了一起,pyfile 也有问题,注释了
> > > > > > vim.command("silent botright new Python CallTips Windows")才没报错,不知
> > > > > > 是否跟此有关
> > > > > >
> > > > > > WinXP下看起来还好,还没怎么用,只是照说明用dir看了一下
> > > > > >
> > > > > > 总的来说,真的很不错!
> > > > > >
> > > > > > >>>>>版本:0.3
> > > > > > >>>>>
> > > > > > >>>>>运行平台:linux ,windows,VIM
> > > > > > >>>>>         我只在中文win2000+vim6.3中测试通过。别的平台,别的vim版本没有测试,如果也能通过,告诉我一声。
> > > > > > >>>>>
> > > > > > >>>>>特性:
> > > > > > >>>>>   1、在vim里编码的时候,可以随着你的输入,自动显示模块或者函数名称和用法,就像idle或者pywin里的calltips,不过我这个脚本还能显示用法和帮助。
> > > > > > >>>>>   2、只支持python语言。
> > > > > > >>>>>
> > > > > > >>>>>用法:
> > > > > > >>>>>   1、打开一个python文件,然后pyfile <路径>pyCallTips.py,如果没有报错,就能运行了,在python文件中import的模块和方法,都能够随着你的输入显示出来。支持内建函数,试着输入 dir 看看。或者放入vimrc文件中,自动运行。
> > > > > > >>>>>   2、如果新增import 或者 from 。。import语句,需要按刷新一下,这样才能显示出新增的模块和方法
> > > > > > >>>>>
> > > > > > >>>>>如果有问题,在这里提出来,我会尽量回答的。如果好使,也说一声,让我也高兴高兴。
> > > > > > >>>>>
> > > > > > >>>>>
> > > > > >
> > > > > > _______________________________________________
> > > > > > python-chinese list
> > > > > > python-chinese at lists.python.cn
> > > > > > http://python.cn/mailman/listinfo/python-chinese
> > > > > >
> > > > >
> > > > > _______________________________________________
> > > > > python-chinese list
> > > > > python-chinese at lists.python.cn
> > > > > http://python.cn/mailman/listinfo/python-chinese
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > >                                                                            可爱的小新
> > > >
> > >
> > > --------------------------------------------------------------------------------
> > >
> > > > _______________________________________________
> > > > python-chinese list
> > > > python-chinese at lists.python.cn
> > > > http://python.cn/mailman/listinfo/python-chinese
> > > >
> > >
> > > _______________________________________________
> > > python-chinese list
> > > python-chinese at lists.python.cn
> > > http://python.cn/mailman/listinfo/python-chinese
> > >
> > >
> > >
> > _______________________________________________
> > python-chinese list
> > python-chinese at lists.python.cn
> > http://python.cn/mailman/listinfo/python-chinese
> >
>
_______________________________________________
python-chinese list
python-chinese at lists.python.cn
http://python.cn/mailman/listinfo/python-chinese
-------------- next part --------------
import getpass
import sys
import telnetlib

HOST = "192.168.0.1"
user = raw_input("Enter your remote account: ")
password = getpass.getpass()

tn = telnetlib.Telnet(HOST)

tn.read_until("login: ")
tn.write(user + "\n")
if password:
    tn.read_until("Password:")
    tn.write(password + "\n")

tn.write("ls\n")
tn.write("exit\n")

print tn.read_all()

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2004年09月09日 星期四 19:02

梅劲松  stephen.cn at gmail.com
Thu Sep 9 19:02:13 HKT 2004

谢谢了,你的0.6版很好用。
怎么让vim启动的时候就带这个脚本呢?


On Thu, 9 Sep 2004 17:42:28 +0800, tocer <tootoo at yeah.net> wrote:
> 这个程序使我从网上考得,做试验用的,对于telnet协议我不懂。
> 
> 见附件
> 
> ----- Original Message -----
> From: "梅劲松" <stephen.cn at gmail.com>
> To: "tocer" <python-chinese at lists.python.cn>
> Sent: Thursday, September 09, 2004 5:27 PM
> Subject: Re: [python-chinese] ANN:能 够显示python ca l ltips的V IM脚本
> 
> 能把你的telnet程序给一个吗?能处理telnet 协议送过来的色彩信息吗?
> 
> On Thu, 9 Sep 2004 17:23:27 +0800, 梅劲松 <stephen.cn at gmail.com> wrote:
> > 看到了,不过我上次用这个0。5版的时候和这个不一样的。
> >
> >
> >
> >
> > On Thu, 9 Sep 2004 17:16:04 +0800, tocer <tootoo at yeah.net> wrote:
> > > 你收到图片了么,列表上有限制,不能大于60k。
> > > 如果没收到我再给你发一遍
> > >
> > >
> > > ----- Original Message -----
> > > From: "梅劲松" <stephen.cn at gmail.com>
> > > To: "tocer" <python-chinese at lists.python.cn>
> > > Sent: Thursday, September 09, 2004 4:21 PM
> > > Subject: Re: [python-chinese] ANN:能 够显示python cal ltips的V IM脚本
> > >
> > > 成功了也贴个图上来,我不知道那样是成功,当然也不知道那样是失败的。
> > >
> > > On Thu, 9 Sep 2004 14:18:37 +0800, tocer <tootoo at yeah.net> wrote:
> > > > 如果失败了,就贴张图给我看看
> > > > ----- Original Message -----
> > > > From: "Xiao Xin" <quakelee at gmail.com>
> > > > To: <python-chinese at lists.python.cn>
> > > > Sent: Thursday, September 09, 2004 1:53 PM
> > > > Subject: Re: [python-chinese] ANN:能够显示python cal ltips的VIM脚本
> > > >
> > > > > 不太会用哇,上次试了一下,不知道为什么没成功,回家再试试
> > > > >
> > > > >
> > > > > On Wed, 8 Sep 2004 16:02:12 +0800, tocer <tootoo at yeah.net> wrote:
> > > > > > 终于又有了反馈,挺好。
> > > > > >
> > > > > > > 我用的是0.5版本,在gentoo+python2.3+gvim6.3(也尝试过控制台)下,发现显示
> > > > > > > 有问题,提示和原文件挤在了一起,
> > > > > >
> > > > > > 用0.6版试试,http://vim.sourceforge.net/scripts/script.php?script_id=1074
> > > > > > 如果还不成,贴个屏幕给我看看,我在linux下没用过。
> > > > > >
> > > > > > 〉pyfile 也有问题,注释了
> > > > > > > vim.command("silent botright new Python CallTips Windows")才没报错,不知
> > > > > > > 是否跟此有关
> > > > > >
> > > > > > 0.6版已经解决。
> > > > > >
> > > > > > ----- Original Message -----
> > > > > > From: "jackphil" <jackphilcn at yahoo.com.cn>
> > > > > > To: <python-chinese at lists.python.cn>
> > > > > > Sent: Wednesday, September 08, 2004 12:07 PM
> > > > > > Subject: Re: [python-chinese] ANN:能够显示python calltips的VIM脚本
> > > > > >
> > > > > > > tocer:
> > > > > > >
> > > > > > > 我用的是0.5版本,在gentoo+python2.3+gvim6.3(也尝试过控制台)下,发现显示
> > > > > > > 有问题,提示和原文件挤在了一起,pyfile 也有问题,注释了
> > > > > > > vim.command("silent botright new Python CallTips Windows")才没报错,不知
> > > > > > > 是否跟此有关
> > > > > > >
> > > > > > > WinXP下看起来还好,还没怎么用,只是照说明用dir看了一下
> > > > > > >
> > > > > > > 总的来说,真的很不错!
> > > > > > >
> > > > > > > >>>>>版本:0.3
> > > > > > > >>>>>
> > > > > > > >>>>>运行平台:linux ,windows,VIM
> > > > > > > >>>>>         我只在中文win2000+vim6.3中测试通过。别的平台,别的vim版本没有测试,如果也能通过,告诉我一声。
> > > > > > > >>>>>
> > > > > > > >>>>>特性:
> > > > > > > >>>>>   1、在vim里编码的时候,可以随着你的输入,自动显示模块或者函数名称和用法,就像idle或者pywin里的calltips,不过我这个脚本还能显示用法和帮助。
> > > > > > > >>>>>   2、只支持python语言。
> > > > > > > >>>>>
> > > > > > > >>>>>用法:
> > > > > > > >>>>>   1、打开一个python文件,然后pyfile <路径>pyCallTips.py,如果没有报错,就能运行了,在python文件中import的模块和方法,都能够随着你的输入显示出来。支持内建函数,试着输入 dir 看看。或者放入vimrc文件中,自动运行。
> > > > > > > >>>>>   2、如果新增import 或者 from 。。import语句,需要按刷新一下,这样才能显示出新增的模块和方法
> > > > > > > >>>>>
> > > > > > > >>>>>如果有问题,在这里提出来,我会尽量回答的。如果好使,也说一声,让我也高兴高兴。
> > > > > > > >>>>>
> > > > > > > >>>>>
> > > > > > >
> > > > > > > _______________________________________________
> > > > > > > python-chinese list
> > > > > > > python-chinese at lists.python.cn
> > > > > > > http://python.cn/mailman/listinfo/python-chinese
> > > > > > >
> > > > > >
> > > > > > _______________________________________________
> > > > > > python-chinese list
> > > > > > python-chinese at lists.python.cn
> > > > > > http://python.cn/mailman/listinfo/python-chinese
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >                                                                            可爱的小新
> > > > >
> > > >
> > > > --------------------------------------------------------------------------------
> > > >
> > > > > _______________________________________________
> > > > > python-chinese list
> > > > > python-chinese at lists.python.cn
> > > > > http://python.cn/mailman/listinfo/python-chinese
> > > > >
> > > >
> > > > _______________________________________________
> > > > python-chinese list
> > > > python-chinese at lists.python.cn
> > > > http://python.cn/mailman/listinfo/python-chinese
> > > >
> > > >
> > > >
> > > _______________________________________________
> > > python-chinese list
> > > python-chinese at lists.python.cn
> > > http://python.cn/mailman/listinfo/python-chinese
> > >
> >
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
> 
> 
>


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2004年09月10日 星期五 08:17

tocer tootoo at yeah.net
Fri Sep 10 08:17:51 HKT 2004

在vimrc文件中加入一行

autocmd FileType python pyfile \\pyCallTips.py

是脚本的路径,这样在打开python文件的时候,就能够自动生效了
----- Original Message ----- 
From: "梅劲松" <stephen.cn at gmail.com>
To: "tocer" <python-chinese at lists.python.cn>
Sent: Thursday, September 09, 2004 7:02 PM
Subject: [python-chinese] Re: 你要的telnet程序


谢谢了,你的0.6版很好用。
怎么让vim启动的时候就带这个脚本呢?


On Thu, 9 Sep 2004 17:42:28 +0800, tocer <tootoo at yeah.net> wrote:
> 这个程序使我从网上考得,做试验用的,对于telnet协议我不懂。
> 
> 见附件
> 
> ----- Original Message -----
> From: "梅劲松" <stephen.cn at gmail.com>
> To: "tocer" <python-chinese at lists.python.cn>
> Sent: Thursday, September 09, 2004 5:27 PM
> Subject: Re: [python-chinese] ANN:能 够显示python ca l ltips的V IM脚本
> 
> 能把你的telnet程序给一个吗?能处理telnet 协议送过来的色彩信息吗?
> 
> On Thu, 9 Sep 2004 17:23:27 +0800, 梅劲松 <stephen.cn at gmail.com> wrote:
> > 看到了,不过我上次用这个0。5版的时候和这个不一样的。
> >
> >
> >
> >
> > On Thu, 9 Sep 2004 17:16:04 +0800, tocer <tootoo at yeah.net> wrote:
> > > 你收到图片了么,列表上有限制,不能大于60k。
> > > 如果没收到我再给你发一遍
> > >
> > >
> > > ----- Original Message -----
> > > From: "梅劲松" <stephen.cn at gmail.com>
> > > To: "tocer" <python-chinese at lists.python.cn>
> > > Sent: Thursday, September 09, 2004 4:21 PM
> > > Subject: Re: [python-chinese] ANN:能 够显示python cal ltips的V IM脚本
> > >
> > > 成功了也贴个图上来,我不知道那样是成功,当然也不知道那样是失败的。
> > >
> > > On Thu, 9 Sep 2004 14:18:37 +0800, tocer <tootoo at yeah.net> wrote:
> > > > 如果失败了,就贴张图给我看看
> > > > ----- Original Message -----
> > > > From: "Xiao Xin" <quakelee at gmail.com>
> > > > To: <python-chinese at lists.python.cn>
> > > > Sent: Thursday, September 09, 2004 1:53 PM
> > > > Subject: Re: [python-chinese] ANN:能够显示python cal ltips的VIM脚本
> > > >
> > > > > 不太会用哇,上次试了一下,不知道为什么没成功,回家再试试
> > > > >
> > > > >
> > > > > On Wed, 8 Sep 2004 16:02:12 +0800, tocer <tootoo at yeah.net> wrote:
> > > > > > 终于又有了反馈,挺好。
> > > > > >
> > > > > > > 我用的是0.5版本,在gentoo+python2.3+gvim6.3(也尝试过控制台)下,发现显示
> > > > > > > 有问题,提示和原文件挤在了一起,
> > > > > >
> > > > > > 用0.6版试试,http://vim.sourceforge.net/scripts/script.php?script_id=1074
> > > > > > 如果还不成,贴个屏幕给我看看,我在linux下没用过。
> > > > > >
> > > > > > 〉pyfile 也有问题,注释了
> > > > > > > vim.command("silent botright new Python CallTips Windows")才没报错,不知
> > > > > > > 是否跟此有关
> > > > > >
> > > > > > 0.6版已经解决。
> > > > > >
> > > > > > ----- Original Message -----
> > > > > > From: "jackphil" <jackphilcn at yahoo.com.cn>
> > > > > > To: <python-chinese at lists.python.cn>
> > > > > > Sent: Wednesday, September 08, 2004 12:07 PM
> > > > > > Subject: Re: [python-chinese] ANN:能够显示python calltips的VIM脚本
> > > > > >
> > > > > > > tocer:
> > > > > > >
> > > > > > > 我用的是0.5版本,在gentoo+python2.3+gvim6.3(也尝试过控制台)下,发现显示
> > > > > > > 有问题,提示和原文件挤在了一起,pyfile 也有问题,注释了
> > > > > > > vim.command("silent botright new Python CallTips Windows")才没报错,不知
> > > > > > > 是否跟此有关
> > > > > > >
> > > > > > > WinXP下看起来还好,还没怎么用,只是照说明用dir看了一下
> > > > > > >
> > > > > > > 总的来说,真的很不错!
> > > > > > >
> > > > > > > >>>>>版本:0.3
> > > > > > > >>>>>
> > > > > > > >>>>>运行平台:linux ,windows,VIM
> > > > > > > >>>>>         我只在中文win2000+vim6.3中测试通过。别的平台,别的vim版本没有测试,如果也能通过,告诉我一声。
> > > > > > > >>>>>
> > > > > > > >>>>>特性:
> > > > > > > >>>>>   1、在vim里编码的时候,可以随着你的输入,自动显示模块或者函数名称和用法,就像idle或者pywin里的calltips,不过我这个脚本还能显示用法和帮助。
> > > > > > > >>>>>   2、只支持python语言。
> > > > > > > >>>>>
> > > > > > > >>>>>用法:
> > > > > > > >>>>>   1、打开一个python文件,然后pyfile <路径>pyCallTips.py,如果没有报错,就能运行了,在python文件中import的模块和方法,都能够随着你的输入显示出来。支持内建函数,试着输入 dir 看看。或者放入vimrc文件中,自动运行。
> > > > > > > >>>>>   2、如果新增import 或者 from 。。import语句,需要按刷新一下,这样才能显示出新增的模块和方法
> > > > > > > >>>>>
> > > > > > > >>>>>如果有问题,在这里提出来,我会尽量回答的。如果好使,也说一声,让我也高兴高兴。
> > > > > > > >>>>>
> > > > > > > >>>>>
> > > > > > >
> > > > > > > _______________________________________________
> > > > > > > python-chinese list
> > > > > > > python-chinese at lists.python.cn
> > > > > > > http://python.cn/mailman/listinfo/python-chinese
> > > > > > >
> > > > > >
> > > > > > _______________________________________________
> > > > > > python-chinese list
> > > > > > python-chinese at lists.python.cn
> > > > > > http://python.cn/mailman/listinfo/python-chinese
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >                                                                            可爱的小新
> > > > >
> > > >
> > > > --------------------------------------------------------------------------------
> > > >
> > > > > _______________________________________________
> > > > > python-chinese list
> > > > > python-chinese at lists.python.cn
> > > > > http://python.cn/mailman/listinfo/python-chinese
> > > > >
> > > >
> > > > _______________________________________________
> > > > python-chinese list
> > > > python-chinese at lists.python.cn
> > > > http://python.cn/mailman/listinfo/python-chinese
> > > >
> > > >
> > > >
> > > _______________________________________________
> > > python-chinese list
> > > python-chinese at lists.python.cn
> > > http://python.cn/mailman/listinfo/python-chinese
> > >
> >
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
> 
> 
>
_______________________________________________
python-chinese list
python-chinese at lists.python.cn
http://python.cn/mailman/listinfo/python-chinese

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号