"On "a" as expected?"  That wasn't the behavior I was expecting.  Sorry if it 
was unclear.  I expected the cursor to be on "e" at the end of "line" because I 
didn't expect :set cuc to modify the cursor column (because it's not a motion.)

Having :set cuc modify the cursor column breaks expected cursor positioning if 
you have a plugin that automatically turns :set cuc on and off.  (For instance 
https://github.com/chreekat/vim-paren-crosshairs ).

On Monday, March 18, 2013 9:31:27 AM UTC-5, toothpik wrote:
> On Mon, Mar 18, 2013 at 03:45:22AM -0700, OmnipotentEntity wrote:
> 
> > Possibly this is a bug, but I'm not sure. Through user fow in #vim on 
> > freenode, I've confirmed no side effect in 7.3.409, but there is a side 
> > effect in 7.3.547 (the version on my computer) and 7.3.854 according to 
> > romainl from stackoverflow.
> 
> 
> 
> > The easiest way to test is to copy paste the following file into a vim 
> > buffer, jump to the beginning (gg) and follow the instructions.
> 
> 
> 
> > ----
> 
> > Hi there, this is a test case.  I'm the first line.
> 
> > This line is short.
> 
> > ----
> 
> 
> 
> > After opening this file issue the following commands:
> 
> > $j:set cuc<Enter>k
> 
> 
> 
> > You'll notice that the cursor should be on the period after "case" this is 
> > expected behavior.
> 
> 
> 
> > Next enter the following commands:
> 
> > :set nocuc<Enter>$hj:set cuc<Enter>k
> 
> 
> 
> > You'll notice that the cursor should now be on the word "a" rather than on 
> > the "e" at the end of "line"
> 
> 
> 
> > So when you have a column value (not end of line) then :set cuc modifies 
> > this value as a side effect.
> 
> 
> 
> > Is there anyway to workaround this issue? Is this a bug? Can anyone else 
> > reproduce?
> 
> 
> 
> not here (7.3.865) -- my cursor winds up on the 'a', as expected

-- 
-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui