xolox / vim-easytags

Automated tag file generation and syntax highlighting of tags in Vim
http://peterodding.com/code/vim/easytags/
1.01k stars 109 forks source link

Add mapping between git and ctags' Objective C file type identifier. #24

Closed ghost closed 12 years ago

ghost commented 12 years ago

Hi Peter, I was trying to get easytags set up on my Mac with MacVim and noticed that it wasn't working properly with my Objective C files (specifically, no tag navigation seemed possible when I'd open a .m file and :UpdateTags would report that ctags did not understand the "objc" file type). I'm also using a version of ctags compiled from the latest source a few days ago, because it provides proper/better Objective C support.

It looks like the issue stems from the fact that "ctags --list-languages" reports "ObjectiveC" but vim calls the file type "objc" -- I was able to make everything work by adding an extra call to map_filetypes() to create the association between the two.

Hopefully this is a legitimate bug I'm fixing instead of user error on my part -- please let me know.