diff options
| author | jdhao <jdhao@hotmail.com> | 2020-08-11 13:06:58 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-11 13:06:58 +0800 |
| commit | 63e6a47263c104683737e6f20b6f8c141551c47a (patch) | |
| tree | ba0a7c94ab7aaea4bdba2e960a7a9ea1e0e25e86 /after/ftplugin/markdown.vim | |
| parent | d5b1309db9cdc02654fce043f65bbf4f605b6a21 (diff) | |
fix markdownfootnote issue
see https://github.com/vim-pandoc/vim-markdownfootnotes/issues/22 for the details
Diffstat (limited to 'after/ftplugin/markdown.vim')
| -rw-r--r-- | after/ftplugin/markdown.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/after/ftplugin/markdown.vim b/after/ftplugin/markdown.vim index 109930b..da142f7 100644 --- a/after/ftplugin/markdown.vim +++ b/after/ftplugin/markdown.vim @@ -1,2 +1,7 @@ set concealcursor=c set synmaxcol=3000 " For long Chinese paragraphs + +if exists(":FootnoteNumber") + nnoremap <buffer> <Plug>AddVimFootnote :<c-u>call markdownfootnotes#VimFootnotes('i')<CR> + inoremap <buffer> <Plug>AddVimFootnote <C-O>:<c-u>call markdownfootnotes#VimFootnotes('i')<CR> +endif |
