Skip to content

Commit

Permalink
Finished ctags-tagbar-markdown marriage
Browse files Browse the repository at this point in the history
  • Loading branch information
R committed Mar 26, 2012
1 parent 40b0cf0 commit 9ecd375
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
8 changes: 3 additions & 5 deletions bash/ctags
@@ -1,10 +1,8 @@
--langdef=markdown
--langmap=markdown:.mkd
--regex-markdown=/^#[ \t]+(.)/\1/h,heading1/
--regex-markdown=/^##[ \t]+(.)/\1/h,heading2/
--regex-markdown=/^###[ \t]+(.*)/\1/h,heading3/
--regex-markdown=/^\\(.*\\)\n\\(===+\\)/\1/h,heading1/
--regex-markdown=/^\\(.*\\)\n\\(---+\\)/\1/h,heading2/
--regex-markdown=/^#[ \t]+(.*)/\1/h,Heading_L1/
--regex-markdown=/^##[ \t]+(.*)/\1/i,Heading_L2/
--regex-markdown=/^###[ \t]+(.*)/\1/k,Heading_L3/

--langdef=shell
--langmap=shell:.sh(.*)
Expand Down
18 changes: 9 additions & 9 deletions vim/vimrc
Expand Up @@ -154,6 +154,15 @@ inoremap jk <Esc> " Hardcore vim
let g:taskbar_usearrows = 1
nnoremap <leader>l :TagbarToggle<CR>
"" Extending tabar to support markdown (additionally to the ~/.ctags-file!)
let g:tagbar_type_mkd = {
\ 'ctagstype' : 'markdown',
\ 'kinds' : [
\ 'h:Heading_L1',
\ 'i:Heading_L2',
\ 'k:Heading_L3'
\ ]
\ }

"" vimorganizer:
au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
Expand Down Expand Up @@ -258,12 +267,3 @@ au BufNewFile *.py,*.pyw,*.c,*.h set fileformat=unix'
" " C: yes
au BufRead,BufNewFile *.py,*.pyw,*.c autocmd CursorMoved * silent! exe printf('match IncSearch /\<%s\>/', expand('<cword>')))

"" Extending tabar to support markdown (additionally to the ~/.ctags-file!)
let g:tagbar_type_markdown = {
\ 'ctagstype' : 'markdown',
\ 'kinds' : [
\ 'h:heading1',
\ 'h:heading2',
\ 'h:heading3'
\ ]
\ }

0 comments on commit 9ecd375

Please sign in to comment.