Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have this in my vimrc under vundle:

    Plugin 'majutsushi/tagbar'
    Plugin 'xolox/vim-easytags'
    Plugin 'xolox/vim-misc'
Later on I have:

    nnoremap <silent> <Leader>b :TagbarToggle<CR>
I may have also separately installed ctags, but I don't remember.

Now you can have an outline of the file you're working on in a small pane to the right. You can use this to navigate or see what arguments a function needs (or what attributes a class has). Whenever you save, ctags are automatically generated so you never have to worry about setting that up. ctrl+] will bring directly to the definition, including if it is in another file entirely. Use ctrl+T to go back to where you came. More often than not, I use this not because I forgot what the code says, but because I made an alteration to how I wanted a function or class to behave and I need to go back and change a line or two.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: