1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

update vim-markdownfootnote settings

This commit is contained in:
jdhao 2020-11-12 22:40:09 +08:00
parent 92bf71ac77
commit 283d3a8b7b
2 changed files with 4 additions and 9 deletions

View File

@ -3,8 +3,10 @@ set synmaxcol=3000 " For long Chinese paragraphs
" Fix minor issue with footnote, see https://github.com/vim-pandoc/vim-markdownfootnotes/issues/22 " Fix minor issue with footnote, see https://github.com/vim-pandoc/vim-markdownfootnotes/issues/22
if exists(':FootnoteNumber') if exists(':FootnoteNumber')
nnoremap <buffer> <Plug>AddVimFootnote :<C-U>call markdownfootnotes#VimFootnotes('i')<CR> nnoremap <buffer><silent> ^^ :<C-U>call markdownfootnotes#VimFootnotes('i')<CR>
inoremap <buffer> <Plug>AddVimFootnote <C-O>:<C-U>call markdownfootnotes#VimFootnotes('i')<CR> inoremap <buffer><silent> ^^ <C-O>:<C-U>call markdownfootnotes#VimFootnotes('i')<CR>
imap <buffer> <silent> @@ <Plug>ReturnFromFootnote
nmap <buffer> <silent> @@ <Plug>ReturnFromFootnote
endif endif
" Text objects for Markdown code blocks. " Text objects for Markdown code blocks.

View File

@ -699,13 +699,6 @@ if g:is_win || g:is_mac
nnoremap <silent> <M-S-m> :<C-U>MarkdownPreviewStop<CR> nnoremap <silent> <M-S-m> :<C-U>MarkdownPreviewStop<CR>
endif endif
""""""""""""""""""""""""vim-markdownfootnotes settings""""""""""""""""""""""""
" Replace the default mappings provided by the plugin
imap ^^ <Plug>AddVimFootnote
nmap ^^ <Plug>AddVimFootnote
imap @@ <Plug>ReturnFromFootnote
nmap @@ <Plug>ReturnFromFootnote
""""""""""""""""""""""""vim-grammarous settings"""""""""""""""""""""""""""""" """"""""""""""""""""""""vim-grammarous settings""""""""""""""""""""""""""""""
if g:is_mac if g:is_mac
let g:grammarous#languagetool_cmd = 'languagetool' let g:grammarous#languagetool_cmd = 'languagetool'