Currently, the default mapping for <Plug>AddVimFootnote is:
nnoremap <buffer> <Plug>AddVimFootnote :<C-U>call markdownfootnotes#VimFootnotes('a')<CR>
inoremap <buffer> <Plug>AddVimFootnote <C-O>:<C-U>call markdownfootnotes#VimFootnotes('a')<CR>
As a result, when the cursor is in the position where we want to insert footnote, an extra space will be inserted before the footnote mark, which is annoying.
For example, if we have (| indicates cursor position):
when we use the mapping to insert footnote, the text becomes:
Instead, it will be more reasonable for text to be:
To achieve this, the above mapping should be changed to:
nnoremap <buffer> <Plug>AddVimFootnote :<C-U>call markdownfootnotes#VimFootnotes('i')<CR>
inoremap <buffer> <Plug>AddVimFootnote <C-O>:<C-U>call markdownfootnotes#VimFootnotes('i')<CR>
Currently, the default mapping for
<Plug>AddVimFootnoteis:As a result, when the cursor is in the position where we want to insert footnote, an extra space will be inserted before the footnote mark, which is annoying.
For example, if we have (
|indicates cursor position):when we use the mapping to insert footnote, the text becomes:
Instead, it will be more reasonable for text to be:
To achieve this, the above mapping should be changed to: