Git Product home page Git Product logo

my-vim-plugins's Introduction

my-vim-plugins

The good, the bad, and the ugly.

This is mostly a rebundling of Vim plugins via git submodules. (And now a Homebrew Brewfile, see BONUS ROUND below).

Prerequisites

  • Python 3
  • git

Quickstart

To use this repo, do something like the following:

mkdir -p ~/.vim/pack/my-plugins/
cd ~/.vim/pack/my-plugins/
git clone --recurse-submodules --init <this repo URI> start

Some plugins require post-update tasks, like YouCompleteMe:

cd YouCompleteMe
./install.py

To configure these plugins, you may also need to add stanzas to your .vimrc. A sample .vimirc will be added to this repo later, and referenced here.

Updating

When this repo is updated, you can ensure an update to the submodules via:

git pull --all --recurse-submodules
git submodule update --remote --init

Tips and tricks

"(Untracked content)" or "(modified)" git submodule status got you down? Try this:

In each directory showing the above statuses:

cd <submodule directory>
git reset --hard HEAD
git clean -fxd
cd ../

And repeat for each relevant git submodule directory.

(Source: https://stackoverflow.com/a/18839908/2808798 )

BONUS ROUND - Homebrew Brewfile

Manage your Mac's software better

So, maybe you love Macs. Or, like me, you are a Linux user, but have the sense to install Homebrew to give your Mac a good package manager that you're used to having in Linux. ;) Homebrew has a nice feature named bundle, similar to how Python has 'requirements.txt', such that you can store your installed packages in a file called "Brewfile", and then later use that file to populate the packages on a new machine.

Quickstart

  • Install Homebrew
  • cd to the root of this repo
  • brew bundle install --file=./_homebrew/mac/Brewfile
  • Watch the nice output, or go get a drink or snack.
  • Return to find you have the same environment you had before, on a new machine!

Tips for Homebrew

  • Best practice is:
    • Use Homebrew soon after you unpack your new machine.
    • Don't use any other way to install software on your machine after you install with Homebrew

Maintaining (behind the scenes)

  • To update all the modules, I'm generally doing this monstrosity:
git submodule update --remote --merge
git add -u
git commit -m "Yay, let's update!"
git push

Thanks for all the good code!

I welcome suggestions or doc PRs. :)

my-vim-plugins's People

Contributors

boldandbusted avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.