Site Logo
mnjm

(neo)vim

2023

  • NeoVim - Show macro recording when cmdheight is set to 0

    Posted on 1 min

    When cmdheight is set to 0 in NeoVim, the indication (recording @x) for macro recording won’t pop up anymore. This can be problematic if q is accidentally pressed, causing NeoVim to freak out at times. I’ve found two solutions to this: Display the register returned from the vim.fn.reg_recording() call on the statusline. While this works great, it needs to be added to the statusline and can become problematic when using statusline plugins.