Open mawkler opened 3 years ago
I've hit something similar. I don't think recursion is the problem. Rather, bullets.vim seems to remove newlines if they are inserted by a macro.
For example, with the following .vimrc
:
call plug#begin('~/.vim/plugged')
Plug 'dkarter/bullets.vim'
call plug#end()
And the following macro defined (note that ^[
is a literal ESC, not the characters ^
and [
):
o```^[
If I run the macro on a line of text, I would expect to see:
line of text
But instead I see:
line of text```
If I disable bullets.vim, I get the expected result.
I've switched to autolist.nvim instead and it works great :)
This recursive macro didn't work and after some investigation I found out that removing bullets.vim solves the issue. I have no clue why, but here's how to reproduce it:
Use the following
.vimrc
/init.vim
:Create a new file that contains the following line:
Execute the following commands on that line, which creates a recursive macro in register
q
:_qqqqqf,a<CR><Esc>@qq
, and immediately after that press@q
to call the macro.The file is unchanged. However, without bullets.vim, the file will look like this:
Output of
:version
:The same error appears in Vim as well.