Inspecting source code with vim, ctags and other tools
Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Ancient Construction
--
Chapters
00:00 Question
01:12 Accepted answer (Score 2)
01:28 Answer 2 (Score 1)
03:23 Thank you
--
Full question
https://stackoverflow.com/questions/1716...
Accepted answer links:
[TagList]: http://www.vim.org/scripts/script.php?sc...
[TagBar]: http://www.vim.org/scripts/script.php?sc...
Answer 2 links:
http://rope.sourceforge.net/ropevim.html
http://rope.sourceforge.net/index.html
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #vim #ctags
#avk47
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Ancient Construction
--
Chapters
00:00 Question
01:12 Accepted answer (Score 2)
01:28 Answer 2 (Score 1)
03:23 Thank you
--
Full question
https://stackoverflow.com/questions/1716...
Accepted answer links:
[TagList]: http://www.vim.org/scripts/script.php?sc...
[TagBar]: http://www.vim.org/scripts/script.php?sc...
Answer 2 links:
http://rope.sourceforge.net/ropevim.html
http://rope.sourceforge.net/index.html
--
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