Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Backup command to backup installed packages #13

Open
EragonJ opened this issue Dec 14, 2011 · 1 comment
Open

Add Backup command to backup installed packages #13

EragonJ opened this issue Dec 14, 2011 · 1 comment

Comments

@EragonJ
Copy link

EragonJ commented Dec 14, 2011

VImana is a useful tool to search and install needed vim files, but is it possible to backup installed packages ?

For me , when typing :

vimana installed 

I would get installed vim packages shown below :

FuzzyFinder [auto]
gist.vim [text]
javascript.vim [text]
matchit.zip [auto]
rails.vim [auto]
snipmate [auto]
supertab-continued. [vimball]
template.vim [auto]
the-nerd-tree [auto]
vim-coffee-script [auto]

After a quick survey , it seems that Vimana stores all file informations under $ENV{VIM_RECORD_DIR} or the other one.

So there may can have a command called :

vimana backup 

After doing so , Vimana would help users to backup a metafile that stores all package names ( which were installed by Vimana from http://www.vim.org/scripts/ ) in JSON format ( like what @c9s do in record directory )

{
    "installed_packages" : [
        "FuzzyFInder" ,
        "rails.vim", 
        ... etc
    ]
}

If one day, a user wants to move from one working environment to another one, (s)he just has to transmit the metafile and anything will be done by Vimana on the free !

The final backup command may be :

vimana backup [options] [path]

with options :

-l, --load 
    load the metafile from the path and will call "install" command to install packages one by one

... to be continued.

Hope this idea helps and thanks for your reading ;)

@c9s
Copy link
Owner

c9s commented Dec 15, 2011

Hi, EragonJ :-)

Your requirement could be solved with a tarball file.

There is a new vim plugin manager called Vundle http://www.charlietanksley.net/philtex/sane-vim-plugin-management/, you can check.

I am planning version3, to redesign the structure and reduce dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants