Add visual_range segment

Returns a value similar to `showcmd`. Requires tests before merging
into develop.