Occasionally when I type :
to quit or write my file the prompt already contains the characters :'<,'>
without me typing anything. It causes an error if I type w
or q
. I cannot replicate this problem. It happens at the oddest times and I have not been able to determine what is causing it.
It took me forever to figure out that my accidentally typing q:
instead of :q
was causing me to have trouble quitting. Now that I know about that little quirk, I'm trying to figure out what causes this other behavior. I can't find anything on it, though I've seen it somewhere in someone's colon command.
Is this an expected behavior? What could be causing it?