Skip to content
프로젝트

소개

:bento: Vim 환경을 휴대용 번들로 만드는 스크립트입니다.

기타 프로젝트

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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 PATTERN
    • grep -v pattern 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')).

관련 프로젝트 살펴보기

불러오는 중…