Reputation: 755
Does jedi vim support anything like intellijs https://www.jetbrains.com/help/idea/structure-tool-window-file-structure-popup.html ?
Upvotes: 0
Views: 650
Reputation: 755
Found majutsushi/tagbar which does this pretty well actually. This video explains how it works with ruby too.
Upvotes: 0
Reputation: 196781
This very simple command gives you an actionable outline of your document:
:g/def\|class/#
You can map it if you don't want to type it all the time; and make it a bit cleaner in the same move:
augroup PythonStuff
autocmd!
autocmd FileType python nnoremap <buffer> <F12> :<C-u>g/\<def\>\\|\<class\>/#<CR>
augroup END
Upvotes: 4