Last active
December 15, 2015 20:09
-
-
Save tchn/5316472 to your computer and use it in GitHub Desktop.
Taglist.vim を Objective-C 対応させる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone https://github.com/pebble8888/ctags-objc-ja | |
$ cd ctags-objc-ja | |
$ autoconf | |
$ ./configure | |
$ make | |
$ cp ctags /opt/bin | |
$ sudo update-alternatives --install /usr/bin/ctags ctags /opt/bin/ctags 1065 | |
$ cp $VIMRUNTIME/filetype.vim ~/.vim | |
$ diff ~/.vim/filetype.vim $VIMRUNTIME/filetype.vim | |
1250,1252d1249 | |
< "au BufNewFile,BufRead *.m call s:FTm() | |
< au BufNewFile,BufRead *.m setf objc | |
< | |
1254,1256c1251 | |
< "au BufNewFile,BufRead *.mm call s:FTmm() | |
< au BufNewFile,BufRead *.mm setf objc | |
< | |
--- | |
> au BufNewFile,BufRead *.mm call s:FTmm() | |
$ cd ~/.vim/bundle/taglist.vim/plugin | |
$ diff taglist.vim taglist.vim.orig | |
431,433d430 | |
< " Objective-C | |
< let s:tlist_def_objc_settings = 'ObjC++;P:protocol;i:class_interface;I:class_implementations;M:instance_methods;C:implementation_methods;Z:protocol_methods' | |
パッチ | |
$ cd .vim/bundle | |
$ cat taglist.vim.objc.patch | |
diff -rupN taglist.vim/plugin/taglist.vim newtaglist/plugin/taglist.vim | |
--- taglist.vim/plugin/taglist.vim 2013-04-05 11:20:19.407165389 +0900 | |
+++ newtaglist/plugin/taglist.vim 2013-04-05 16:12:55.466997963 +0900 | |
@@ -428,6 +428,9 @@ let s:tlist_def_lua_settings = 'lua;f:fu | |
" makefiles | |
let s:tlist_def_make_settings = 'make;m:macro' | |
+" Objective-C | |
+let s:tlist_def_objc_settings = 'ObjC++;P:protocol;i:class_interface;I:class_implementations;M:instance_methods;C:implementation_methods;Z:protocol_methods' | |
+ | |
" pascal language | |
let s:tlist_def_pascal_settings = 'pascal;f:function;p:procedure' | |
$ patch -p0 < taglist.vim.objc.patch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment