perl in vim question

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

perl in vim question

tooth pik
in if_perl i see everything i need except how to get the current
buffer's current line number

$curbuf->Append('.', $stuff) appends after line 0

there is no $curbuf->Line() function

any help will be appreciated

--
--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CALfSX1xtoLU6wXLPbuiB2iGd_iCUUO%2BEySf5N9nnD9GocsuBfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: perl in vim question

Tekki-2
Am Donnerstag, 9. Mai 2019 21:37:04 UTC+2 schrieb toothpik:
> there is no $curbuf->Line() function

Try $curwin->Cursor(): "With no arguments, returns a (row, col) array for the current cursor position in the Window."

--
--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/8bc56581-1312-4bf0-b403-426ffa0da1ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: perl in vim question

tooth pik
no, that's window position, not buffer line

i have an ugly workaround:  in viml before the perl i let lno = line('.')

then inside the perl i use $l = VIM::Eval(lno);

On Fri, May 10, 2019 at 1:29 AM Tekki <[hidden email]> wrote:

>
> Am Donnerstag, 9. Mai 2019 21:37:04 UTC+2 schrieb toothpik:
> > there is no $curbuf->Line() function
>
> Try $curwin->Cursor(): "With no arguments, returns a (row, col) array for the current cursor position in the Window."
>
> --
> --
> 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 [hidden email].
> To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/8bc56581-1312-4bf0-b403-426ffa0da1ab%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CALfSX1zFnUxVewUpiLRDTBwcq1sXotuZ%2BPAu_hCwnP87EiZfeg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.