The Python Oracle

Inspecting source code with vim, ctags and other tools

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Melt

--

Chapters
00:00 Inspecting Source Code With Vim, Ctags And Other Tools
00:57 Accepted Answer Score 2
01:15 Answer 2 Score 1
02:35 Thank you

--

Full question
https://stackoverflow.com/questions/1716...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #vim #ctags

#avk47



ACCEPTED ANSWER

Score 2


Some of what you want (the "listing" part, at least) can be done with TagList or TagBar but I'm afraid you are confusing Vim with an IDE.




ANSWER 2

Score 1


Have you looked at Rope?

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

Features

Rope refactorings:

  • Rename anything!
  • Extract method/local variable
  • Move class/function/module/package/method
  • Inline method/local variable/parameter
  • Restructuring (like converting "${a}.f(${b})" to "${b}.g(${a})" where "a: type=mymod.A")
  • Introduce factory
  • Change method signature
  • Transform module to package
  • Encapsulate field
  • Replace method with method object
  • And a few others...

Rope can:

  • Extract similar statements in extract refactorings
  • Fix imports when needed
  • Preview refactorings
  • Undo/redo refactorings
  • Interrupt refactorings
  • Perform cross-project refactorings
  • Handle basic implicit interfaces in rename and change signature
  • Support Mercurial, GIT, Darcs and SVN in refactorings

Rope can also help IDE's with:

  • Auto-completion
  • Finding definition location
  • Getting pydoc
  • Finding occurrences
  • Organizing imports (removing unused and duplicate imports and sorting them)
  • Generating python elements

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