sponsor Vim development Vim logo Vim Book Ad

MarkdownFootnotes : Insert Extended Markdown Footnotes with Vim

 script karma  Rating 4/1, Downloaded by 577  Comments, bugs, improvements  Vim wiki

created by
David Sanson
 
script type
utility
 
description
This script is a modification of the venerable vimfootnotes (vimscript #431), for use with extended markdown. The most recent version is available on github:

https://github.com/vim-pandoc/vim-markdownfootnotes/

The original vimfootnotes inserts footnotes that look like this:

    Here is some text.[1]

    [1] Here is a note.

The new script inserts footnotes in the widely supported extended markdown syntax,

    Here is some text.[^1]

    [^1]: Here is a note.

The original script inserts footnotes at the end of the file or before an email sig line, if there is one. The new script inserts all footnotes at the end of the file.

The script defines two mappings,

    <Leader>f    Insert new footnote
    <Leader>r    Return from footnote

To insert a footnote, type f. A footnote mark will be inserted after the cursor. A matching footnote mark will be inserted at the end of the file. A new buffer will open in a split window at the bottom of your screen, ready to edit the new footnote. When you are done, type r to close the split and return to the main text.
 
install details
Drop markdownfootnotes.vim in your plugin directory.

Or use Pathogen (vimscript #2332).
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-markdownfootnotes-1.0.0.zip 1.0 2011-09-13 6.0 David Sanson Initial upload
ip used for rating: 18.117.152.251

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github