Monday, January 30, 2012

set a mark in an arbitrary file

Is there a way to set a mark to a file not loaded in a buffer, just
specified by the filename?

I keep losing my (uppercase) marks, and would like to set them up in
my .vimrc. I'd do this using setpos(), but that requires a buffer
number. I want to call something like setpos("'A", ['filename.c', 1,
1, 0]).

Thanks,
Sam

--
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

No comments: