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

Re: [patch] Add [stay] argument to :function which, used with [range], preserves the cursor position

Expand Messages
  • Bram Moolenaar
    ... I don t like stay , but can t think of something better right now. Perhaps keepline ? -- hundred-and-one symptoms of being an internet addict: 95. Only
    Message 1 of 33 , Dec 5, 2012
    • 0 Attachment
      Nate Soares wrote:

      > Just tried to apply these clean and realized that the doc patch had
      > caught some changes to tags. My mistake, a cleaned one is below.
      >
      > Bram, do you have any preference on the name of this argument?

      I don't like "stay", but can't think of something better right now.
      Perhaps "keepline"?

      --
      hundred-and-one symptoms of being an internet addict:
      95. Only communication in your household is through email.

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ an exciting new programming language -- http://www.Zimbu.org ///
      \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

      --
      You received this message from the "vim_dev" 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
    • So8res
      ... Any word on getting a variant of range functions that don t move the cursorline? This still bites me occasionally. -- -- You received this message from the
      Message 33 of 33 , Nov 11, 2013
      • 0 Attachment
        On Wednesday, December 5, 2012 9:13:17 AM UTC-8, So8res wrote:
        > >
        > > I don't like "stay", but can't think of something better right now.
        > >
        > > Perhaps "keepline"?
        > >
        >
        > How do you feel about using 'range!' (with a bang) instead?
        >
        > It would keep the :function argument space more concise, and would only be usable with 'range', both of which are nice. However, there's no precedent (that I can find) for command arguments having bangs.

        Any word on getting a variant of range functions that don't move the cursorline? This still bites me occasionally.

        --
        --
        You received this message from the "vim_dev" 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_dev" group.
        To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+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.