Skip to main content

AnkiVim

Build Status Health Coverage Pypi_

Overview

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

Requirements

  • Python >= 2.7 or Python >= 3.4

Installation

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/anki-vim.py.)

  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

Supports:

  • Latex commands of any kind

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

Metadata

Release files for AnkiVim 1.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for AnkiVim 1.5.3
File Size Uploaded
AnkiVim-1.5.3.tar.gz 393.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for AnkiVim 1.5.3
File Interpreter ABI Platform
AnkiVim-1.5.3-py3-none-any.whl Python 3 none any Details

Total release size: 401.6 kB

Release files / AnkiVim-1.5.3.tar.gz

Download URL AnkiVim-1.5.3.tar.gz
Size 393.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a26ac1a64fa627c98d77069afed139a53d12d392c85e102dab4011f98ee2372f
BLAKE2b-256 checksum
How to use checksums
2dcaa61b81f018bc1e8fc495a6435356d383842923017815792af8ea518691f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.5.2

Release files / AnkiVim-1.5.3-py3-none-any.whl

Download URL AnkiVim-1.5.3-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f37e5e579625c05226138bd570e06484263850f75a92cb61275bd6e837190898
BLAKE2b-256 checksum
How to use checksums
6d56729a9d1c1c42fbceebc82ad9cf992fdf531dcd4596b011e42368986e8aea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.5.2

Release history Release notifications | RSS feed

This release

1.5.3 This release

2 release files

1.5.2

1 release file

1.5.1

2 release files

1.5

2 release files

1.4

2 release files

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page