Reputation: 305
Sometimes when I press : from normal mode, it starts with : ' < , ' >. Why does this happen and what is it good for?
Upvotes: 2
Views: 53
Reputation: 45157
You are not in normal mode, but visual mode. When in visual mode every command starts with the visual mode range, '<,'>
, automatically. This is useful if you want to run an ex command on your visually selected lines, e.g. :s
, :g
, and :sort
. For more information see :h v_:
.
Upvotes: 6