Python论坛  - 讨论区

标题:[python-chinese] vim里面设置python

2008年01月01日 星期二 16:21

Xian Chen hoganxian在gmail.com
星期二 一月 1 16:21:33 HKT 2008

ÔõôÉèÖÃpython±àÒëÖ®ºóµÄ½á¹ûÖ±½ÓÔÚquickfix´°¿ÚÀïÃæÏÔʾ³öÀ´£¿

ÏÖÔÚÿ´Î¶¼Êǵ¯³öcmd´°¿ÚÀ´±àÒ룬¸Ð¾õ²»ÊǺܷ½±ã~

лл
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20080101/c04b7e5f/attachment.htm 

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

2008年01月01日 星期二 16:33

Leo Jay python.leojay在gmail.com
星期二 一月 1 16:33:06 HKT 2008

On Jan 1, 2008 4:21 PM, Xian Chen <hoganxian在gmail.com> wrote:
> 怎么设置python编译之后的结果直接在quickfix窗口里面显示出来?
>
> 现在每次都是弹出cmd窗口来编译,感觉不是很方便~
>
> 谢谢

python?编译?
python要编译吗?

-- 
Best Regards,
Leo Jay

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

2008年01月01日 星期二 16:53

liwei anbutu在gmail.com
星期二 一月 1 16:53:59 HKT 2008

   autocmd FileType python map   :w!:!python %

On Jan 1, 2008 4:21 PM, Xian Chen <hoganxian在gmail.com> wrote:
> 怎么设置python编译之后的结果直接在quickfix窗口里面显示出来?
>
> 现在每次都是弹出cmd窗口来编译,感觉不是很方便~
>
> 谢谢
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>



-- 
Jerry Lee
University of Jinan

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

2008年01月01日 星期二 17:09

Xian Chen hoganxian在gmail.com
星期二 一月 1 17:09:12 HKT 2008

Õâ¸öÉèÁËÓÐʲôÓ㿲»Ã÷°×

On 1/1/08, liwei <anbutu在gmail.com> wrote:
>
>   autocmd FileType python map   :w!:!python
> %
>
> On Jan 1, 2008 4:21 PM, Xian Chen <hoganxian在gmail.com> wrote:
> > ÔõôÉèÖÃpython±àÒëÖ®ºóµÄ½á¹ûÖ±½ÓÔÚquickfix´°¿ÚÀïÃæÏÔʾ³öÀ´£¿
> >
> > ÏÖÔÚÿ´Î¶¼Êǵ¯³öcmd´°¿ÚÀ´±àÒ룬¸Ð¾õ²»ÊǺܷ½±ã~
> >
> > лл
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
>
>
>
> --
> Jerry Lee
> University of Jinan
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20080101/5c8c7aa9/attachment.htm 

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

2008年01月02日 星期三 00:25

subowen onenew在gmail.com
星期三 一月 2 00:25:13 HKT 2008

"把以下内容加入 比如D:\vim\_vimrc  文件里
""Set some bindings up for 'compile' of python
au BufNewFile,BufRead *.py :set makeprg=python\ %
au BufNewFile,BufRead *.py :set efm=%C\ %.%#,%A\ \ File\ \"%f\"\\,\
line\ %l%.%#,%Z%[%^\ ]%\\@=%m
au BufNewFile,BufRead *.py nmap   :up!:make
au BufNewFile,BufRead *.py vmap   :up!:make
"F8 '编译'
au BufNewFile,BufRead *.py nmap   :cl
"F12 列出错误行号
"这些能够完成你要得功能 有不懂的用 :help 命令学习学习,
"vim的help 是神作
"现在还有中文版的.
-- 
知止而后有定,定而后能静,静而后能安,安而后能虑,虑而后能得。

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

2008年01月02日 星期三 00:31

subowen onenew在gmail.com
星期三 一月 2 00:31:53 HKT 2008

au BufNewFile,BufRead *.py :set efm=%C\ %.%#,%A\ \ File\ \"%f\"\\,\
line\ %l%.%#,%Z%[%^\ ]%\\@=%m

注意上面的是一行,
Google 自动给断行了,



-- 
知止而后有定,定而后能静,静而后能安,安而后能虑,虑而后能得。

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

2008年01月02日 星期三 00:34

subowen onenew在gmail.com
星期三 一月 2 00:34:51 HKT 2008

set efm=%C\ %.%#,%A\ \ File\ \"%f\"\\,\ line\ %l%.%#,%Z%[%^\ ]%\\@=%m

line前面的空格居然也给吞了...

-- 
知止而后有定,定而后能静,静而后能安,安而后能虑,虑而后能得。

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

2008年01月02日 星期三 09:03

Xian Chen hoganxian在gmail.com
星期三 一月 2 09:03:04 HKT 2008

Nice,¶àл~~

On Jan 2, 2008 12:34 AM, subowen <onenew在gmail.com> wrote:

> set efm=%C\ %.%#,%A\ \ File\ \"%f\"\\,\ line\ %l%.%#,%Z%[%^\ ]%\\@=%m
>
> lineÇ°ÃæµÄ¿Õ¸ñ¾ÓȻҲ¸øÍÌÁË...
>
> --
> ÖªÖ¹¶øºóÓж¨£¬¶¨¶øºóÄܾ²£¬¾²¶øºóÄܰ²£¬°²¶øºóÄÜÂÇ£¬ÂǶøºóÄܵá£
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20080102/ab08ffae/attachment.html 

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号