While using Vim, in visual mode, selecting text and then calling a colon command shows : '<,'> instead of just : as it would show when I do other things (such as opening a file).
What does '<,'> mean?
Using linux (debian), gnome-terminal, vim7.2
It means that the command that you type after
:'<,'>will operate on the part of the file that you’ve selected.For example,
:'<,'>dwould delete the selected block, whereas:ddeletes the line under the cursor.Similarly,
:'<,'>w fragment.txtwould write the selected block to the file calledfragment.txt.The two comma-separated things (
'<and'>) are marks that correspond to the start and the end of the selected area. From the help pages (:help '<):When used in this manner, the marks simply specify the range for the command that follows (see
:help range). They can of course be mixed and matched with other line number specifiers. For example, the following command would delete all lines from the start of the selected area to the end of the file::'<,$dThe Vim Wiki has more information on Vim ranges.