Sorry about that. I've updated it now, I think I fixed the issues you described.
On Mon, Sep 21, 2009 at 9:22 PM, Laszlo Papp <[email protected]> wrote: > > > On Mon, Sep 21, 2009 at 8:27 PM, Michael Sanders <[email protected]>wrote: > >> This is what I use. You can probably modify for your needs: >> http://github.com/msanders/vim-files/blob/master/autoload/functionator.vim >> http://github.com/msanders/vim-files/blob/master/plugin/functionator.vim >> >> On Mon, Sep 21, 2009 at 11:16 AM, Laszlo Papp <[email protected]>wrote: >> >>> Hello! >>> >>> It would be nice if there was a command which could give back in a C/C++ >>> file the actual function/class/etc. name in which the cursor/position is >>> without taglist using. >>> >>> Exaple usage: :funcact >>> Result: helloworld() function >>> >>> Best Regards, >>> Laszlo Papp >>> >>> >>> >> >> >> > Thanks the feedback! > > It seems cool, if it can work... > > 1. When I try in C program inside a function i get back: > > Error detected while processing function > functionator#GetName..<SNR>208_GetFuncName: > line 21: > E117: Unknown function: subtitute > E15: Invalid expression: subtitute(getline(funDecl), '\s*{', '', '') > line 51: > E121: Undefined variable: funName > E15: Invalid expression: [funName, line - funBegin, funEnd] > Not in function. > > 2. When I try it in javascript: > > Not in function > > 3. When I try it python: > > It works generally, but sometimes I get back a 'Not in function', however > I'm in a function. > > 4. Works well for vim scripts functions. > > > Best Regards, > Laszlo Papp > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
