Friday, July 17, 2015

Re: how to get the function:line of calling script

hermitte@free.fr wrote:
> Hello,
>
>> If you figure out how to use this in a script, please post, I have
>> wanted this ability as well.
> Yes indeed.
>
> I the past, I had to emulate similar features by preprocessing viml scripts where I've been inserting line numbers and all. The result was extremly cumbersome.
>
> (It was for my Unit Testing plugin: https://github.com/LucHermitte/vim-UT )
>
Hello:

I wanted to use it for my internal debugger -- it would append a ~###
string to the end of debugging lines (and they would have "Ignore"
highlighting). That way I can (with another ftplugin I wrote) hit the
<f9> key and get a split view; left side showing the debug trace and the
right side showing the code responsible for issuing that message.

I was going to use a command:

com! -nargs=+ -complete=expression Decho call
Decho(<args>,'~'.expand("<slnum>"))

but this didn't work as I'd hoped with netrw.

Regards,
Chip Campbell

--
--
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 because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: