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

<cr> doesn't insert newline in the middle of a line with text when `tpope/vim-endwise` is running

Open hneutr opened this issue 8 years ago • 1 comments

replication steps:

  • with vim-endwise running, open a file and add a line of text.

  • run :Pencil. go to somewhere in the middle of the text

  • hit . nothing will happen (or a space will be inserted)

  • disable vim-endwise and repeat - a newline will now be (properly) inserted.

hneutr avatar Feb 16 '17 20:02 hneutr

If anyone else runs into this an easy solution is to overwrite endwise's CR mapping. autocmd FileType markdown inoremap <buffer> <CR> <CR>

Problem solved 😄

JamesApple avatar Dec 01 '18 03:12 JamesApple