项目
在 GitHub 查看
junegunn/myvim
关于
:bento: 用于创建 Vim 环境便携套件的脚本。
其他项目实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文myvim
A script that creates a portable bundle of your Vim environment.
Usage
myvim script will create an executable named vim.$(whoami).
bash <(curl -fL https://raw.githubusercontent.com/junegunn/myvim/master/myvim)
Options
-e|--edit- Allow you to edit the list of files to be archived and the environment variables to apply
-j- Use bzip2 instead of gzip
--exclude PATTERNgrep -vpattern for excluding files
Why?
You want your Vim settings and plugins on whichever server you connect to. But having your .vimrc on GitHub or Bitbucket is usually not enough. Because:
- You need Git and free access to internet
- Even when both conditions are met, downloading plugins can be time-consuming
- When the user account on the server is shared among coworkers, you need to restore the default configuration every time when you're done
How does it work?
myvim creates a tar archive of your .vimrc and .vim directory and append it
to a small bash script that starts Vim with your usual settings and plugins.
Caveat
The generated script injects code for temporarily swapping $HOME variable
around the vimrc in the archive. This is because most vimrcs contain
references to home directory (e.g. call plug#begin('~/.vim/plugged')).
探索相关项目
加载中…