Am 19.12.2011 12:11, schrieb sinbad:
hi,
how to alter the path of a mark.
old-mark: /root/one/two/<var>/file.c
i have a requirement where<var> will be
changing often, without resetting the marks
every time, how can i simply change the value
of<var> to what i need. are there any functions
like setmark() getmark().
cheers
You are talking about uppercase marks, right?
There is
:h getpos()
:h setpos()
E.g.
:call setpos("'A", [2, 543, 67, 0])
Set mark 'A in buffer 2 at line 543, column 67.
Get the buffer number for given filename:
:h bufnr()
If the file is not yet in buffer list:
:h :badd
--
Andy
--
You received this message from the "vim_use" 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