Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Vim python-mode. PyLint, Rope, Pydoc, breakpoints from box.

License

NotificationsYou must be signed in to change notification settings

python-mode/python-mode

Repository files navigation

logo Python-mode, Python in VIM

https://travis-ci.org/klen/python-mode.png?branch=developDonate

Python-mode is a vim plugin that helps you to create python code very quicklyby utilizing libraries includingpylint,rope,pydoc,pyflakes,pep8, andmccabe for features like static analysis, refactoring, folding, completion,documentation, and more.

The plugin containts all you need to develop python applications in Vim.

There is no need to installpylint,rope or any other Python libraries onyour system.

  • Support Python version 2.6+ and 3.2+
  • Syntax highlighting
  • Virtualenv support
  • Run python code (<leader>r)
  • Add/remove breakpoints (<leader>b)
  • Improved Python indentation
  • Python folding
  • Python motions and operators (]],3[[,]]M,vaC,viM,daC,ciM, ...)
  • Code checking (pylint,pyflakes,pylama, ...) that can be runsimultaneously (:PymodeLint)
  • Autofix PEP8 errors (:PymodeLintAuto)
  • Search in python documentation (K)
  • Code refactoring <rope refactoring library> (rope)
  • Strong code completion (rope)
  • Go to definition (<C-c>g for :RopeGotoDefinition)
  • And more, more ...

See (very old) screencast here:http://www.youtube.com/watch?v=67OZNp9Z0CQ(sorry for quality, this is my first screencast) Another old presentation here:http://www.youtube.com/watch?v=YhqsjUUHj6g

To read python-mode documentation in Vim, see:help pymode.txt

  • VIM >= 7.3 (mostly features needed +python or +python3 support)(also--with-features=big if you wantg:pymode_lint_signs)
% cd ~/.vim% mkdir -p bundle && cd bundle% git clone git://github.com/klen/python-mode.git
  • Enablepathogenin your~/.vimrc:

    " Pathogen loadfiletype offcall pathogen#infect()call pathogen#helptags()filetype plugin indent onsyntax on
% git clone git://github.com/klen/python-mode.git% cd python-mode% cp -R * ~/.vim

Then rebuildhelptags in vim:

:helptags ~/.vim/doc/

Note

filetype-plugin (:help filetype-plugin-on) andfiletype-indent (:help filetype-indent-on)must be enabled to use python-mode.

If your python-mode doesn't work: open any python file and type:

:call pymode#troubleshooting#test()

And fix any warnings or copy the output and send it to me. (For example, bycreating anew github issueif one does not already exist for the problem).

Documentation is available in your vim:help pymode

If you have any suggestions, bug reports orannoyances please report them to the issue trackerathttps://github.com/klen/python-mode/issues

See the AUTHORS file.

Development of python-mode happens at github:https://github.com/klen/python-mode

Please make a pull request to development branch and add yourself toAUTHORS.

Copyright © 2013 Kirill Klenov (klen)

Copyright (C) 2006-2010 Ali Gholami Rudi

Copyright (C) 2009-2010 Anton Gritsay

https://pypi.python.org/pypi/rope

https://pypi.python.org/pypi/ropemode

http://rope.sourceforge.net/ropevim.html

Copyright (C) 2012-2013 Kirill Klenov

https://pypi.python.org/pypi/pylama

https://github.com/klen/pylama

Copyright (C) 2003-2011 LOGILAB S.A. (Paris, FRANCE).

https://pypi.python.org/pypi/pylint

https://bitbucket.org/logilab/pylint

http://www.pylint.org/

http://www.logilab.fr/

Copyright (c) 2005 Divmod, Inc.

https://pypi.python.org/pypi/pyflakes

https://launchpad.net/pyflakes

http://www.divmod.com/

Copyright (C) 2006 Johann C. Rocholl <johann@rocholl.net>

https://pypi.python.org/pypi/pep8

http://github.com/jcrocholl/pep8

http://www.python.org/dev/peps/pep-0008/

Copyright (C) 2010-2011 Hideo Hattori <hhatto.jp@gmail.com

Copyright (C) 2011-2013 Hideo Hattori, Steven Myint

https://pypi.python.org/pypi/autopep8

https://github.com/hhatto/autopep8

Copyright (C) 2012 Vladimir Keleshev, GreenSteam A/S

https://pypi.python.org/pypi/pep257

http://github.com/GreenSteam/pep257

http://www.python.org/dev/peps/pep-0257/

Copyright (C) 2008 Ned Batchelder

Copyright (C) 2013 Florent Xicluna

https://pypi.python.org/pypi/mccabe

https://github.com/flintwork/mccabe

Copyright (c) 2010 Dmitry Vasiliev

http://www.hlabs.spb.ru/vim/python.vim

Copyright (c) 2012 Hynek Schlawack <hs@ox.cx>

http://github.com/hynek/vim-python-pep8-indent

Licensed under aGNU lesser general public license.

If you like this plugin, you can send me postcard :)My address is here: "Russia, 143401, Krasnogorsk, Shkolnaya 1-19" to "Kirill Klenov".Thanks for support!

About

Vim python-mode. PyLint, Rope, Pydoc, breakpoints from box.

Resources

License

Stars

Watchers

Forks

Sponsor this project

    Packages

    No packages published

    Contributors111


    [8]ページ先頭

    ©2009-2025 Movatter.jp