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

Re: col('.')

Expand Messages
  • Bram Moolenaar
    ... This is normal. With CTRL-O you go to Normal mode, and the cursor can t be beyond the end of the line then. -- hundred-and-one symptoms of being an
    Message 1 of 2 , Jan 24, 2002
    • 0 Attachment
      Kontra Gergely wrote:

      > I open vim, and type:
      > iabc<Esc>
      > So it seems like:
      >
      > abc
      > ~
      > ~
      > I press a so I'm after the c
      > Then I press <C-r>=col('.'), 4 is inserted.
      > Then, I press backspace to clear the 4
      > I press <C-o>:echo col('.'), and 3 is displayed!!!!
      >
      > Bram, please answer!

      This is normal. With CTRL-O you go to Normal mode, and the cursor can't
      be beyond the end of the line then.

      --
      hundred-and-one symptoms of being an internet addict:
      55. You ask your doctor to implant a gig in your brain.

      /// Bram Moolenaar -- Bram@... -- http://www.moolenaar.net \\\
      ((( Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim )))
      \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
    Your message has been successfully submitted and would be delivered to recipients shortly.