Skip to content

Instantly share code, notes, and snippets.

@yamaya
Last active August 29, 2015 14:00
Show Gist options
  • Save yamaya/11165621 to your computer and use it in GitHub Desktop.
Save yamaya/11165621 to your computer and use it in GitHub Desktop.
fuzzyfinder buffertag for objc
--langdef=objc
--langmap=objc:.mm.m.h
--regex-objc=/\@interface[[:space:]]+([[:alpha:]][[:alnum:]_]*)([[:space:]]*\(([^)]*)\))?/\1(\3)/i,class interface/
--regex-objc=/\@implementation[[:space:]]+([[:alpha:]][[:alnum:]_]*)([[:space:]]*\(([^)]*)\))?/\1(\3)/I,class implementation/
--regex-objc=/\@property[^;]+[^[:alpha:]_]([[:alpha:]_][[:alnum:]_]*)[[:space:]]*;/\1/p,property/
--regex-objc=/^[[:space:]]*([-+])[[:space:]]*\([[:alpha:]_][^)]*\)[[:space:]]*([[:alpha:]_][^:;{]+:?)/\1\2/M,method/
--regex-objc=/^[^[:space:]#@][^=]+[[:space:]]([[:alpha:]_][[:alnum:]_]*)[[:space:]]*=/\1/v,variable/
--regex-objc=/^[[:space:]]*typedef[[:space:]][^;]+[[:space:]]([[:alpha:]_][[:alnum:]]*)[[:space:]]*;/\1/t,typedef/
let g:fuf_buffertag_ctagsPath = '/usr/local/bin/ctags'
let g:fuf_buffertag__objc = '--options='.expand('~/.vim/tags/ctags-options-objc-source')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment