Re: [hackers][vis][PATCH] Make normal mode 'S' behave like in Vim

From: Marc André Tanner <mat_AT_brain-dump.org>
Date: Sun, 20 Dec 2015 12:00:53 +0100

On Tue, Dec 15, 2015 at 07:35:04PM +0100, Silvan Jegen wrote:
> + { "S", ALIAS("^c$") },

Thanks, I applied the patch because it improves the common case of
changing only one line. However it breaks count handling i.e.
something like "3S" will only affect the current line. Also Vim
seems to behave more like "g0c$", however I personally find your
version more useful (for a single line) as it preserves indentation.

Notice that "cc" without a count is still broken. Maybe the best
solution would be to check within the change operator whether the
range is linewise and if so insert a line break after the deletion.
This should result in the desired behaviour when given a count.

-- 
 Marc André Tanner >< http://www.brain-dump.org/ >< GPG key: 10C93617
Received on Sun Dec 20 2015 - 12:00:53 CET

This archive was generated by hypermail 2.3.0 : Sun Dec 20 2015 - 12:12:17 CET