Hurrah! At last finished installing taglist in Vim for ABAP language, but still very minimal tag recognition (for windows).
Here is the steps:
- Download taglist plugin from: taglist plugin
- Download exuberant ctags utility from: ctags
- Extract taglist to your vim /plugin dir. For pathogen user, please see the pathogen documentation.
- Extract exuberant ctags binary/exe to a folder that the folder path didn't consist any space (i run into problem when I copy it into Program Files folder -- will look the workaround later)
- Create "ctags.cnf" file in your %UserProfile% folder or read wikipedia for more info
- Edit the "ctags.cnf" file and add code:
--langdef=abap --langmap=abap:.abap --regex-abap=/^[dD][eE][fF][iI][nN][eE][ \t]*([a-zA-Z0-9_]+)/\1/d,define/ --regex-abap=/^[cC][lL][aA][sS][sS][ \t]*([a-zA-Z0-9_]+)/\1/c,class/ --regex-abap=/^[mM][oO][dD][uU][lL][eE][ \t]*([a-zA-Z0-9_]+)/\1/m,module/ --regex-abap=/^[fF][oO][rR][mM][ \t]*([a-zA-Z0-9_]+)/\1/f,form/
SAVE
- Open up _vimrc file that reside in your vim folder and add several lines:
filetype on let Tlist_Ctags_Cmd = 'c:\utility\ctags58\ctags.exe' "example folder name, change it necessary let tlist_abap_settings='abap;d:define;c:class;m:module;f:form'
SAVE
- Open up your Vim (or gVim), load up your source code, set syntax to abap (i download abap.vim syntax highlighter though)
- Run :TlistToggle" to open up (or close if you open it) taglist function list windows, and voila, it done!
No comments:
Post a Comment