If I make a bookmark in ed
for an address by invoking k
plus any other letter, I can return to that address later by invoking '+letter
. I frequently make these bookmarks, especially when navigating a long document.
However, if I create such a bookmark and then perform a global substitution (such as g/vim/s//ed/g
) when I try to return to the address I bookmarked it is gone and ed
gives me Invalid address
. This is strange because it is especially after invoking a global substitution that one would like to return to the place where one was previously because global substitutions reset dot
to the last edited line.
Am I missing something here?