GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - yoshi1123/vim-mtg: The VIM 'Magic: The Gathering' deck builder

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
autoload
autoload
 
 
doc
doc
 
 
ftdetect
ftdetect
 
 
ftplugin
ftplugin
 
 
python
python
 
 
syntax
syntax
 
 
tests
tests
 
 
.gitmodules
.gitmodules
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
scripts.vim
scripts.vim
 
 

Repository files navigation

viMTG

viMTG -- the VIM 'Magic: The Gathering' deck builder.

Bugs

NOTE: If you find a bug, please file an issue.

Image

vim-mtg

Features

  • Preview cards completely inside Vim <Enter>
  • Display your deck's stats <localleader>p (manacost, mana curve, legalities, and more)
  • Format deck into sections <localleader>p
  • Easily move cards to different sections gm, gs, go (Main, Sideboard, Other)
  • Search for cards <localleader>s
  • Add searched cards to deck a, s, o (Main, Sideboard, Other)
  • Select sort order for search <localleader>o
  • Limit Search to a format <localleader>f
  • Import decks by copying and pasting universal MTG deck export format

Installation

Use your plugin manager of choice. On Windows, replace the directory ~/.vim with ~/vimfiles.

  • Vim Packages
    • Linux/Unix/OSX:
      • git clone --recursive https://github.com/yoshi1123/vim-mtg ~/.vim/pack/bundle/start/vim-mtg
      • Run :helptags ~/.vim/pack/bundle/start/vim-mtg/doc
    • Windows:
      • git clone --recursive https://github.com/yoshi1123/vim-mtg ~/vimfiles/pack/bundle/start/vim-mtg
      • Run :helptags ~/vimfiles/pack/bundle/start/vim-mtg/doc
  • Pathogen
    • Linux/Unix/OSX:
      • git clone --recursive https://github.com/yoshi1123/vim-mtg ~/.vim/bundle/vim-mtg
    • Windows:
      • git clone --recursive https://github.com/yoshi1123/vim-mtg ~/.vim/bundle/vim-mtg
  • Vundle
    • Add Bundle 'https://github.com/yoshi1123/vim-mtg' to .vimrc
    • Run :BundleInstall
  • NeoBundle
    • Add NeoBundle 'https://github.com/yoshi1123/vim-mtg' to .vimrc
    • Run :NeoBundleInstall
  • vim-plug
    • Add Plug 'https://github.com/yoshi1123/vim-mtg' to .vimrc
    • Run :PlugInstall

Updating mtgcard dependency

From vim-mtg/:

git submodule update --recursive --remote

Quick start

Example:

  1. Type in cards lines in the format '4 Ancient Den', or <localleader>a
  2. :MTGSearch type:artifact
  3. Use a to add the current card in search buffer to the deck, s to add to sideboard, and o to add to other, with an optional COUNT (e.g., 4a adds four of the currently selected card)
  4. Type <localleader>p to process the deck

Deck import formats:

Format 1                  Format 2             
4 Ancient Den             4 x Ancient Den      
2 Arcbound Ravager        2 x Arcbound Ravager 
4 Welding Jar             4x Welding Jar       
4 Ornithopter             4x Ornithopter       
etc...                    etc...               

Search examples:

:MTGSearch colors>=rgw type:sorcery search for sorceries that are at least colors red, green, and white

:MTGSearch format:standard colors=r type:creature text:damage search for red creature cards with the word "damage" in their text

Documentation

In Vim:

:help vim-mtg

Suggested plugins

  • fzf:
    • Fuzzy searcher for easily adding cards with <localleader>a. Not a requirement.

About

The VIM 'Magic: The Gathering' deck builder

Resources

Readme
GPL-3.0 license
Activity

Stars

24 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.