MARVIM - MAcro Repository for VIM "Give your most complex macros a name and store it for future recall and use"
GNU General Public License v2.0
34
stars
8
forks
source link
setreg() adds extra '^M' when macro ends with '^M' #9
Closed
antoinemadec closed 5 years ago
To reproduce:
qq<CR>q
, save macro, load macro The macro is jumping 2 lines instead of 1.The reason: setreg()'s help says:
The fix: explicitly pass the character mode option to setreg()
Thanks, Antoine