Skip to content

Commit

Permalink
Add Tagbar support for reStructuredText via rst2ctags.
Browse files Browse the repository at this point in the history
  • Loading branch information
jszakmeister committed Feb 20, 2013
1 parent 328b5e8 commit e1665fc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1451,6 +1451,9 @@ Requires ctags.exe to be in the path. Generally this comes with Linux
distributions. Compiled binaries may be found at
http://ctags.sourceforge.net/

Added support for reStructuredText using rst2ctags. rst2ctags can be found
at https://bitbucket.org/bernh/rst2ctags

------------------------------------------------------------------------------
TCOMMENT *notes_tcomment*
Comment lines in a program |tcomment.txt|
Expand Down
18 changes: 18 additions & 0 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -1600,6 +1600,24 @@ nnoremap <silent> <S-F8> :TagbarToggle<CR>:call UpdatePowerlineStatus()<CR>
nnoremap <silent> <C-Q><C-T> :TagbarToggle<CR>:call UpdatePowerlineStatus()<CR>
nnoremap <silent> <C-Q>t :TagbarToggle<CR>:call UpdatePowerlineStatus()<CR>
" Support for reStructuredText, if available.
if executable("rst2ctags")
" tagbar settings
let g:tagbar_type_rst = {
\ 'ctagstype': 'rst',
\ 'ctagsbin' : 'rst2ctags',
\ 'ctagsargs' : '-f - --sort=yes',
\ 'kinds' : [
\ 's:sections',
\ 'i:images'
\ ],
\ 'sro' : '|',
\ 'kind2scope' : {
\ 's' : 'section',
\ },
\ }
endif

" -------------------------------------------------------------
" textobj-diff
" -------------------------------------------------------------
Expand Down

0 comments on commit e1665fc

Please sign in to comment.