Hi xaizek and list, 2016-7-15(Fri) 2:30:56 UTC+9 xaizek: > Run Vim like this: > > vim -N -u NONE -c 'set virtualedit=all' > > > > Enter the following text: > > <tabulation>1 > > > > See how cursor position relative to tabulation affects placement of > incremented/decremented number: > > " "|" designates cursor position > | 1 > " <ctrl-x> gives this (OK) > | 0 > " moving cursor to the right before pressing <ctrl-x> moves number (not OK) > | -1 > | -2 > | -3 > " etc. > > > > Virtual space seems to be counted as if it was a real character. > > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub, .
I can reproduce your reported issue. And I also found a bug that involved to increment/decrement with vitrual edit. How to reproduce: - Start naked Vim with virtualedit. $ vim -Nu NONE -c "set ve=all" - Input buffer to `3` i3<Esc> - Cursor move to the right edge. g$ - Do increment. <C-A> Expected result: - Buffer is not changed. Actual result: - Number was incremented and move to before the right edge. I'll investigate these issues on this weekend or next. I have wrote some patches involved to CTRL-A and CTRL-X. e.g. https://github.com/vim/vim/commit/d79e55016cf8268cee935f1ac3b5b28712d1399e Thanks. -- Best regards, Hirohito Higashi (a.k.a. h_east) -- -- 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/d/optout.
