Friday, March 31, 2023

What's the point of the "-i" switch? was : How do I replicate vim settings across two machines?

Follow up to this thread, see bottom post. I have been messing about
with vim and I have used this command from my local machine:

$ vim ~/external/docs/mlog -i ~/external/.viminfo

From the manual:

-i {viminfo}
Specifies the filename to use when reading or writing the
viminfo file, instead of the default "~/.viminfo". This
can also be used to skip the use of the .viminfo file, by
giving the name "NONE".


But when I use this syntax, the cursor mark is still not at the same
place where I left when I used vim directly on the remote machine.

So, my question is, what is the practical point of this switch?




-------- Weitergeleitete Nachricht --------
Betreff: Re: How do I replicate vim settings across two machines?
Datum: Tue, 14 Mar 2023 20:34:53 +0600
Von: Enan Ajmain <3nan.ajmain@gmail.com>
Antwort an: vim_use@googlegroups.com
An: 'Ottavio Caruso' via vim_use <vim_use@googlegroups.com>
Newsgruppen: gmane.editors.vim
Referenzen: <3578ec15-99a6-9fcc-1745-c79b93201585.ref@yahoo.com>
<3578ec15-99a6-9fcc-1745-c79b93201585@yahoo.com>
<ZBBcopAm3aXJ/AOA@256bit.org>
<885d99d6-60cc-d5ec-7971-58b07cc1f5f2@yahoo.com>

On Tue, 14 Mar 2023 14:09:47 +0000
"'Ottavio Caruso' via vim_use" <vim_use@googlegroups.com> wrote:
> Would it work if I sym-linked the remote .viminfo to the local one (or
> vice versa)?

First, you _have_ to do that. That's the way you share the info of
which line you closed a file on, etc. The problem Christian was talking
about was the difference in filenames of the same file. That question
comes _after_ you have made a shared .viminfo file (either by symlinking
or by using git).

Christian will be able to clarify better when they reply.


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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/cb797b9e-93bc-6b56-0d7c-6e426b7eb941%40yahoo.com.

No comments: