---
title: "nvim: `vim.o.cmdheight=0`"
description: "!https://vi.stackexchange.com/questions/39947/nvim-vim-o-cmdheight-0-looses-the-recording-a-macro-messages"
date: 2023-12-14
published: true
tags:
  - neovim
  - thought
template: link
---


<div class="embed-card embed-card-external">
  <a href="https://vi.stackexchange.com/questions/39947/nvim-vim-o-cmdheight-0-looses-the-recording-a-macro-messages" class="embed-card-link" target="_blank" rel="noopener noreferrer">
    <div class="embed-card-content">
      <div class="embed-card-title">External Link</div>
      <div class="embed-card-meta">vi.stackexchange.com</div>
    </div>
  </a>
</div>


I fixed my missing macro recording indicator that I lost and was never quite sure why. (because I forgot that I set cmdheight=0).

``` lua
vim.cmd [[ autocmd RecordingEnter * set cmdheight=1 ]]
vim.cmd [[ autocmd RecordingLeave * set cmdheight=0 ]]
```
