On 02:27 Thu 11 Aug , sinbad wrote: > On Aug 10, 11:18 am, sinbad <[email protected]> wrote: > > i am writing a small vim function which uses taglist() function. > > the function doesn't seem to be working in the script, but it will > > work if i type it manually in the command line. i have structure > > defined with 'symname', for a tag, in the following function > > the taglist always returns an empty list. on the other hand for > > the same symbol name if run it as command i will get the correct > > taglist entry > > > > :echo taglist('symname') works, for the same symname the following > > function fails. am i missing something. > > > > fun! Tags(tag) > > echo taglist(a:tag) > > endfun > > > > thanks > > any idea ?
Maybe, try 'echomsg' instead of 'echo', or use 'redraw' before echo. But I guess what you really want is to set a variable with value returned by taglist() function. Marcin > > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
