dawsbot / swim

🏊‍♀️ Switch between multiple vimrc files
MIT License
83 stars 14 forks source link
bash bash-script shell shell-script vim vimrc vimrc-files

swim logo

switch vimrc files instantly


Demo

demo fig


Why

Trying out and switching vimrc's shouldn't be hard. It shouldn't require several mv's combined with a wget. Most importantly, it shouldn't stop you from always having the perfect vim configuration so you can be efficient.

swim add vimrc's directly from the internet

or locally and alias your vimrc's with names that are easy to remember. Swim entirely replaces the need for per-directory vimrc's, headers, and external vimrc configs.


Install

Backup your files before swimming

curl -s https://raw.githubusercontent.com/dawsonbotsford/swim/master/install | bash


Examples

  swim add ~/dotfiles/myVimrc favorite    #Add new swim alias
  swim ls                                 #Show available swim aliases
  swim add https://raw.githubusercontent.com/dawsonbotsford/swim/master/exampleVimrcs/vimrcWikia.vim example
  swim with favorite         #Set alias favorite as primary .vimrc
  swim with main             #Set alias main as primary .vimrc


Update

swim update       #Update to the newest version of swim


Available Commands

swim add <URLToRaw or pathToFile>  <alias>   #Add a swim alias
swim with <alias>                            #Change active vimrc file
swim ls                                      #List aliased vimrc files
swim active                                  #Show currently aliased vimrc
swim vim <alias>                             #Edit the vimrc stored at alias

swim mv <alias1> <alias2>                    #Rename alias (like Linux mv)
swim rm <alias>                              #Delete an alias entirely
swim update                                  #Download newest version
swim version                                 #Print version
swim help                                    #Print this message


FAQ





Requirements


Changelog