I am trying to make a function to generate a tags file from whichever file
is open in vim.

function! ShowFunctions()
   !ctags --uc-kinds=f $file
   !sed -i '/TAG/d' tags
   30vsplit tags
   set nowrap
   setlocal ts=99
   map <CR> 0ye<C-W>w:tag <C-R>"<CR>
endfunction

If I replace $file with *.uc it works but I only want the current file to
be tagged so I need to replace $file with the correct term/variable for
the open filename.

I have the function bound to F9 so that the tags file opens at the side and
I can navigate around functions easily.

-- 
I just forgot my whole philosophy of life!!!

Reply via email to