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

Re: Feature request: ]] should obey 'cinoptions'

Expand Messages
  • Bram Moolenaar
    ... The ]] command comes from Vi. I prefer to keep it Vi-compatible. It s not difficult to make a mapping to have ]] search for where you want the cursor to
    Message 1 of 3 , Mar 2, 2005
    • 0 Attachment
      Ron Aaron wrote:

      > I have the dubious pleasure of working with code that is indented in a
      > strange way - such that the opening brace of a function is not in
      > column 0, but rather is indented 'shiftwidth'.
      >
      > It is painful that ]] does not work in a way that corresponds to cinoptions
      > (which I have set, among other things, to f1s ).
      >
      > Is there a workaround, and is there any way this will get into vim?

      The ]] command comes from Vi. I prefer to keep it Vi-compatible.

      It's not difficult to make a mapping to have ]] search for where you
      want the cursor to move.

      --
      We're knights of the round table
      We dance whene'er we're able
      We do routines and chorus scenes
      With footwork impeccable.
      We dine well here in Camelot
      We eat ham and jam and spam a lot.
      "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
      \\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html ///
    Your message has been successfully submitted and would be delivered to recipients shortly.