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

Re: split() and 'ic'

Expand Messages
  • Bee
    ... This works: echo split( abcABC , [Bb] ) [ a , cA , C ] Bill -- You received this message from the vim_dev maillist. Do not top-post! Type your reply
    Message 1 of 3 , Nov 2, 2012
    • 0 Attachment
      On Nov 2, 9:45 am, Andy Wokula <anw...@...> wrote:
      > Looks like split() never ignores case:
      >      :set ic
      >      :echo split('abcABC', 'b')
      >      ['a', 'cABC']
      >
      > but this is not mentioned in
      >      :h split()
      >
      > What about adding a line (taken from :h :helpgrep):
      >      'ignorecase' is not used, add "\c" to ignore case.
      >
      > --
      > Andy

      This works:

      echo split('abcABC', '[Bb]')

      ['a', 'cA', 'C']

      Bill

      --
      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
    • Bram Moolenaar
      ... I ll add something like that. -- hundred-and-one symptoms of being an internet addict: 17. You turn on your intercom when leaving the room so you can hear
      Message 2 of 3 , Nov 4, 2012
      • 0 Attachment
        Andy Wokula wrote:

        > Looks like split() never ignores case:
        > :set ic
        > :echo split('abcABC', 'b')
        > ['a', 'cABC']
        >
        > but this is not mentioned in
        > :h split()
        >
        > What about adding a line (taken from :h :helpgrep):
        > 'ignorecase' is not used, add "\c" to ignore case.

        I'll add something like that.

        --
        hundred-and-one symptoms of being an internet addict:
        17. You turn on your intercom when leaving the room so you can hear if new
        e-mail arrives.

        /// 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
      Your message has been successfully submitted and would be delivered to recipients shortly.