Loading ...
Sorry, an error occurred while loading the content.

Re: vim: current best available jekyll plugin? (or, sub-subject: how to write a ranged command calling ranged function)

Expand Messages
  • Paul Isambert
    ... You’re correct, I was too hasty when writing the command. Best, Paul -- -- You received this message from the vim_use maillist. Do not top-post! Type
    Message 1 of 4 , Feb 17, 2013
    • 0 Attachment
      ping <songpingemail@...> a écrit:
      > 2) even with that, I still can't catch the selected text range, but
      > instead my test shows only 1st line(or "current") line
      > is yanked. so I tried this:
      >
      > com! -range=% -nargs=1 Post :<line1>,<line2>call Post(<q-args>)
      >
      > now it seems to work.
      >
      > so it seems that to support "range" in command -- a common usage is to
      > pass that range into a called func (also ranged),
      > that 2 elements can't be ignored...
      >
      > not sure my understanding is correct or I still miss anything here?

      You’re correct, I was too hasty when writing the command.

      Best,
      Paul

      --
      --
      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@....
      For more options, visit https://groups.google.com/groups/opt_out.
    Your message has been successfully submitted and would be delivered to recipients shortly.