Dear vim list,
I'm a long time vim user, but now I feel lost in the woods with marks
(file bookmarks). Please help. Maybe my problem was always there since
years but never surfaced, because I only had one laptop and carried my
file with the bookmarks and viminfo and view files and whatnot
together.
But now I have two computers, one in the office and one at home. I
have a huge outline file I'm editing with vimoutliner plugin in vim
and I have a lot of vim marks within the file. I carry the file
between the two computers on a usb stick back and forth. I just
realised whenever I edit the file at home, my marks will land a few
lines astray compared to where I left them the day before. When I
don't edit the file at home, everything is OK. This is normal, marks
are stored outside the file as expected, so I should carry that file
holding the marks also between the computers. Fine, but where are
they? I could not find them, not even after reading the documentation
and googling.
I use view files, this is in my .vimrc since ages:
" Peter Princz, 2005.10.28 {{{1
" file view settings
autocmd BufWinLeave * silent! mkview
autocmd BufWinEnter * silent! loadview
" }}}1
Help would suggest marks are in the .viminfo file, but they are not
there. More precisely, *my* marks are not there, in fact nothing from
a..z is there, only 0..9 and X, that I'm not using:
This is in my .viminfo:
# File marks:
'X 8465 7 ~/blabla
'0 1 0 /blabla
'1 9732 5 ~/blabla
'2 19565 8 ~/blabla
'3 19269 9 ~/blabla
'4 19216 4 ~/blabla
'5 19225 20 ~/blabla
'6 18857 20 ~/blabla
'7 1942 54 ~/blabla
'8 18789 7 ~/blabla
'9 1 0 /media/disk-1/blabla
They are not in the view file either. All my mappings are there, but
not the marks. Note: the documentation does not suggest they should be
there, it was just my last shot in the dark.
I even did a grep -R recursively under my home to find a known string
where a mark is pointing to in the file but no success. What am I
doing wrong? It is vim 7.2 on linux.
My general question is what are the best practices to move between
computers back and forth with a set of text files edited in vim, if
the home directories and user names, etc. are different. Luckily, all
path referemces in .viminfo and the view files are relative from ~ as
home. Am I right if the directory tree structure is identical under
the two homes all these should work fine?
Your input is very much appreciated.
--
Have a nice day,
Peter
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---