Skip to main content

Use vim to rapidly write textfiles immediately importable into anki(1).

Project description

Build Status Health Coverage Pypi_


Use vim to rapidly write textfiles immediately importable into anki(1).


  • Python >= 2.7 or Python >= 3.4


Simply run:

pip install AnkiVim

You can verify that this step succeeded and see available options by running:

anki-vim -h

Generating Anki Cards

  1. Call:
anki-vim DECKNAME
  1. vim starts with a preformatted card. Start typing the front part of the anki card below “QUESTION”, then fill out the back below “ANSWER”. (NOTE: It is important to leave the QUESTION and ANSWER headers intact throughout)
  2. save the file and exit the editor. (vim: “:wq”) => the card contents are saved to: $HOME/.ankivim/decks/DECKNAME/raw_cards.txt. (alternatively, you can specify a custom location for your decks using the –deckpath option of script/
  3. editor starts right back up to generate a new card for the same deck => Iterate 2.-4. until all cards are generated.
  4. to stop the card creation process, simply close your editor ( for vim: “:q” or “:q!”, for additional information see this book)

Importing into Anki

Procedure to import anki cards generated by this tool into anki:

  1. Open Anki
  2. Generate the deck to import into or click on an existing deck
  3. Click import and navigate to “/path/to/anki-vim/decks/DECKNAME/raw_cards.txt”
  4. check “allow html in fields”
  5. Done


  • Latex commands of any kind
  • html tags of any kind (images can be included this way as well)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for AnkiVim, version 1.5.3
Filename, size File type Python version Upload date Hashes
Filename, size AnkiVim-1.5.3-py3-none-any.whl (7.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size AnkiVim-1.5.3.tar.gz (393.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page