Skip to content

Instantly share code, notes, and snippets.

@dracorp
Last active May 17, 2018 20:53
Show Gist options
  • Save dracorp/5d7308b894c1c9f301bc9cb8d2f262db to your computer and use it in GitHub Desktop.
Save dracorp/5d7308b894c1c9f301bc9cb8d2f262db to your computer and use it in GitHub Desktop.
# See also http://vim-taglist.sourceforge.net/manual.html
# ~/.ctags
--regex-sh=/^[ \t]*(typeset|local)?[ \t]*([A-Za-z0-9_-]+)=/\2/v,variable,variables/
--regex-sh=/^[ \t]*(readonly|declare -r)[ \t]*([A-Za-z0-9_-]+)=/\2/c,constant,constants/
# ~/.vim/vimrc
let tlist_sh_settings = 'sh;f:functions;v:variables;c:constants'
let g:tagbar_type_sh = {
\ 'kinds':[
\ 'f:functions',
\ 'c:constants',
\ 'v:variables'
\ ]
\}
# Perl
--langmap=perl:+.pod
--regex-perl=/^=head1[[:space:]]*(.+)/\1/o,pod/
--regex-perl=/^=head2[[:space:]]*(.+)$/. \1/o,pod/
--regex-perl=/^=head3[[:space:]]*(.+)$/.. \1/o,pod/
--regex-perl=/^=head4[[:space:]]*(.+)$/... \1/o,pod/
--regex-perl=/^=for[[:space:]]+([^:]+):(.*)$/*\1:\2/o,pod/
--regex-perl=/^__(DATA|END)__$/__\1__/l,labels/
--regex-perl=/# :([[:upper:]]+\s*):([^[:space:]]+) ([^[:space:]]+):(.*)$/\1 \2/k,comments/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment