Ilya Esteban wrote:

> If you add  capital letter mark, then delete it, it will reappear the next 
> time you restart Vim. 
> 
> Steps to reproduce:
> 1) Open a file and add a mark "mA"
> 2) Exit Vim
> 3) Restart Vim and delete the mark using ":delmarks A"
> 4) Confirm that mark has been deleted via ":marks" command
> 5) Exit Vim
> 6) Restart Vim and run ":marks" command, and you see that the deleted mark 
> has reappeared
> 
> Note: If you change a mark to a different file, it gets correctly
> persisted across Vim sessions, as you'd expect. Only deleting a mark
> doesnt work.

The mark is stored in the viminfo file.  When exiting Vim the current
marks and the ones in the viminfo file are merged.  You can see this if
you set the mark elsewhere, then delete it, after restarting Vim you get
the old position.

Only way to really remove it is by editing the viminfo file.
Or you can start vim with "-u NONE" to avoid using the viminfo file.

- Bram

-- 
MONK: ... and the Lord spake, saying, "First shalt thou take out the Holy Pin,
      then shalt thou count to three, no more, no less.  Three shalt be the
      number thou shalt count, and the number of the counting shalt be three.
      Four shalt thou not count, neither count thou two, excepting that thou
      then proceed to three.  Five is right out.  Once the number three, being
      the third number, be reached, then lobbest thou thy Holy Hand Grenade of
      Antioch towards thou foe, who being naughty in my sight, shall snuff it.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to