After reviewing the help docs and source code I wasn't able to determine why 'I'nsert behaves differently than 'A'ppend while in characterwise 'v'isual mode. Specifically, 'A' conveniently appends the text to the end of the visual range, but 'I' inserts text at the beginning of the line.
For example, with the cursor anywhere on the following line: <div>one</div> :normal vitA-two<CR> <div>one-two</div> :normal vitIzero-<CR> zero- <div>one-two</div> My expectation would have been for the result to be: <div>zero-one-two</div> IMO it's intuitive to see at a visual range and have 'I'/'A' operate on that range, instead of the entire line. I've tried and failed to come up with a workflow/use-case where a user would want to enter 'v'isual mode only to perform an insert operation that is effectively the same as a normal-mode 'I'nsert (i.e. start of line insert). Are there some considerations that I'm overlooking? Regards. -TJ -- -- 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.
