vim-pencil icon indicating copy to clipboard operation
vim-pencil copied to clipboard

Suspending autoformatting doesn't work?

Open jgonera opened this issue 5 years ago • 3 comments

Thank you for an excellent plugin! Makes writing Markdown much easier. The only time I'd like to disable it is when editing lists so I added let g:pencil#map#suspend_af = 'K' to my config. However, hitting K+i/o/a seems to have the same effect as hitting only i/o/a (autoformatting enabled).

My config looks like this:

augroup pencil
  autocmd!
  autocmd FileType markdown,mkd call pencil#init()
augroup END

let g:pencil#map#suspend_af = 'K'

Using Neovim 0.4.3.

Am I doing something wrong?

jgonera avatar Jul 21 '20 20:07 jgonera

Has anyone been able to get this to work and could share their config?

jgonera avatar Oct 17 '20 09:10 jgonera

Does not work for me either. Also Neovim.

However, making a shortcut for the PencilToggle command (to Ctrl+P with nmap <c-p> :PencilToggle<CR> for example) is a low-effort solution that achieves more or less the same thing for me.

matkozak avatar Oct 21 '20 10:10 matkozak