I'm sorry, but I don't at all understand what your problem is (and
from the lack of responses I am guessing nobody else does either).
Can you try to clarify what your problem is so that maybe we can help
you out? Could you perhaps tell us what steps to take in order to
reproduce the problem?
/Björn
Thanks for clarifying this for me a bit. I installed taglist.vim but
I do not know how to use it, so please give me step-by-step
information what I have to do to recreate these problems. I
understand you have to use ctags, but I've basically never used that
program either so the more detail you can provide, the better.
Thanks,
Björn
Or use MacPorts ;-)
> Verify it with $ ctags --version
If you don't want to put exuberant ctags in your path for some reason,
you can set 'Tlist_Ctags_Cmd' accordingly.
> 3) Fire terminal.app, go into the folder of your source, simply type $
> ctags -R * (this command will create tags for all the sources under
> current folder)
While this is useful in general (so that you can use <C-]> to jump to
function definitions), it's not required to use the plugin. Taglist
automatically calls ctags every now and then to regenerate the tag list.
> 4) Under vim, command mode, type ":TlistToggle", a new window with all
> the tags will be shown. Press enter to jump, ctrl-w w to jump between
> tag-window and source-window.
imho, the plugin is more useful with these settings in your _vimrc:
let Tlist_Use_Right_Window=1
let Tlist_Enable_Fold_Column=0
let Tlist_Show_One_File=1 " especially with this one
let Tlist_Compact_Format=1
set updatetime=1000
If you're looking at taglist anyways, there's a small colorscheme
problem with it: the macvim color scheme uses the same color to
highlight the current function in taglist as to highlight the current
match. I often search for a tag name in the taglist window; after that
I have to use `:noh` before I can make sense of the "current function
highlight" in taglist again. This is not a problem with other
colorschemes (e.g. inkpot).
Nico
> I had the same problem too. The problem is Taglist under Cocoa-Vim
> doesn't work. I tried it with the older Mac Vim port (I assume that
> one is Carbon-based), it works on that version. Did you personally use
> Taglist.vim? Could you help us to look at it?
I just had the idea that this might be related to MacVim not setting
your path as you'd expect. What happens if you do `:!which ctags` in
MacVim? Does it help if you do `let Tlist_Ctags_Cmd='/opt/local/bin/
ctags'` (adjust path to the output of `which ctags` in Terminal.app)
right after you launch MacVim?
>
Nico
I am glad the problem is solved. Another way to deal with path issues
is to open up a terminal and type
defaults write org.vim.MacVim MMLoginShell 1
However, it doesn't seem to work with all shells (works with the OS X
default shell though).
/Björn