Reputation: 1287
My marks are randomly deleted while using gvim on my ubuntu machine.
For example, if I make some marks with ma
and mb
, tab away to firefox on another desktop, come back to gvim later and try to navigate to the marks 'a
and 'b
I get the error:
E20: Mark not set
What could be causing this to happen?
Upvotes: 1
Views: 90
Reputation: 27822
It's difficult to be sure given the lack of details, but the most common reason for this is that the line was deleted.
For example with a buffer:
hello
world
test
And we add a mark on the third line (test
).
If we now do ddoHello<Esc>
this mark is removed, because the line was removed with dd
. The mark is not restored if we add a new line 3.
There are some other scenarios where marks can get clobbered. e.g. when using Vp
to replace the current line.
I suppose this could be considered both a feature and bug.
Upvotes: 1