Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

yoshi1123/vim-mtg

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.