Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Customizations for ctags/taglist.

Add .ctags file to the list of 'dotfiles' that should be symlinked.

The .ctags file includes extensions to add support for markdown and PML

Also, taglist plugin needs to be made aware of these customizations, so
vimrc includes tlist_xxx_settings variables, which tell it how to deal
with the extenstions to ctags.

More info on customizing ctags/taglist:
  • Loading branch information...
commit 9c02cacfc9df49f9b0e3a32dac4f99ba0e9da63f 1 parent 9574557
@nelstrom authored
Showing with 18 additions and 0 deletions.
  1. +1 −0  README.markdown
  2. +11 −0 ctags
  3. +6 −0 vimrc
1  README.markdown
@@ -16,6 +16,7 @@ Create symlinks:
ln -s ~/dotfiles/gvimrc ~/.gvimrc
ln -s ~/dotfiles/irbrc ~/.irbrc
ln -s ~/dotfiles/vim ~/.vim
+ ln -s ~/dotfiles/ctags ~/.ctags
I put Vim's backup and swap files in `~/tmp`, so that directory must exist. To
be sure, run:
11 ctags
@@ -0,0 +1,11 @@
+--regex-markdown=/^#[ \t]+(.*)/\1/h,heading1/
+--regex-markdown=/^##[ \t]+(.*)/\1/h,heading2/
+--regex-markdown=/^###[ \t]+(.*)/\1/h,heading3/
6 vimrc
@@ -144,6 +144,12 @@ nmap <silent> <leader>s :set spell!<CR>
nmap <silent> <leader>n :silent :nohlsearch<CR>
command! -nargs=* Wrap set wrap linebreak nolist
command! -nargs=* Maxsize set columns=1000 lines=1000
+" CTags {{{1
+map <Leader>rt :!ctags --extra=+f -R *<CR><CR>
+let Tlist_Ctags_Cmd = "/usr/local/bin/ctags"
+let tlist_xml_settings='pml;t:Titles;a:Anchors'
+let tlist_markdown_settings='markdown;h:Headings'
+nmap <Leader>tl :TlistToggle<CR>
" Mappings {{{1
" Speed up buffer switching {{{2
Please sign in to comment.
Something went wrong with that request. Please try again.