How to pack and move current VIM environment to another computer

406 views
Skip to first unread message

Justin Li

unread,
Mar 13, 2009, 6:18:08 AM3/13/09
to vim...@googlegroups.com
Hi all,

I like all of the current configuraion of VIM in my computer 1. However,  I want to use VIM in computer 2 exactly the same with the VIM which I am using in computer 1.

Which files should be packed and moved into PC2 from PC1? The whole directory in system directory and .vimrc in user directory?

FYI: I use Ubuntu linux system.

Thanks in advance.

Justin


--
Department of Electronic Engineering
City University of Hong Kong
Kowloon, Hong Kong
--------------------------------------------------
Contact:
Office: P1412 Computer System Lab
Office phone: (852)2194 2854

Archibald Chase

unread,
Mar 13, 2009, 8:02:07 AM3/13/09
to vim...@googlegroups.com
Hi,
I think you should copy in /home/yourname/ the vim configuration files,
i.e. .vimrc and the directory called .vim/

That's all !!!

Bye

Archibald
Le vendredi 13 mars 2009 à 06:18:08, Justin Li écrivait :
--
Archibald Chase
--
Il y a des patrons de gauche - - Il y a aussi des poissons volants, mais qui ne constituent pas la majorité du genre.
Michel Audiard

Dennis Benzinger

unread,
Mar 13, 2009, 8:24:49 AM3/13/09
to vim...@googlegroups.com
Am 13.03.2009 13:02, Archibald Chase schrieb:
> Hi,
> I think you should copy in /home/yourname/ the vim configuration files,
> i.e. .vimrc and the directory called .vim/
>
> That's all !!!
> [...]

No, if you have a .gvimrc in your home directory you'll need it too.


Dennis Benzinger

vincent

unread,
Mar 13, 2009, 10:23:19 AM3/13/09
to vim_use

If you will do this kind of migration often, or you work on several
different systems/machines at the same time, you should consider to
put your vim configuration files under some source control system.
That will make the synchronization very easy. Google Codes(svn) and
GitHub(for git) are both very good and free options. Good luck :)

BR
Vincent

Michael Henry

unread,
Mar 14, 2009, 7:02:43 PM3/14/09
to vim...@googlegroups.com
vincent wrote:
> On Mar 13, 6:18 pm, Justin Li <shenyuan...@gmail.com> wrote:
> > I like all of the current configuraion of VIM in my computer 1.
However, I
> > want to use VIM in computer 2 exactly the same with the VIM which I
am using
> > in computer 1.
> >
> > Which files should be packed and moved into PC2 from PC1? The whole
> > directory in system directory and .vimrc in user directory?
>
> If you will do this kind of migration often, or you work on several
> different systems/machines at the same time, you should consider to
> put your vim configuration files under some source control system.
> That will make the synchronization very easy. Google Codes(svn) and
> GitHub(for git) are both very good and free options. Good luck :)

There is a tip on the Vim wiki that addresses some of these issues:

http://vim.wikia.com/wiki/Version_Control_for_Vimfiles

Michael Henry

Reply all
Reply to author
Forward
0 new messages