vim - What is the use case of marks? -
both sublime text 2 , vim have feature called marks. however, i've not been able find use case it. feels can can done other things, better.
so question is: use case of marks?
if mean marking text lines in vim
, use quite bit.
for example, if want go @ else, can use ma
mark current line a
, go check out else in file, return simple 'a
.
similarly, if want delete unknown number of lines between current position , somewhere else, use ma
, go "somewhere else, , use d'a
.
there many more things can them (such changing text between current position , mark), 2 common ones use (and use them lot).
Comments
Post a Comment