I was trying to use VIM and it kept blinking "recording" all the time. Now I know that it means VIM was recording what I was typing. Where does it keep these recordings? I would like to delete these.


The "recording" label usually appears when you press 'q' key to record a macro. It is not recording what you are typing, it is recording a command sequence to be re-used for later use.

See: http://vim.wikia.com/wiki/Macros

  • Is there anyway I can clean this command sequence? – user41745 Mar 27 '13 at 16:43
  • To start recording you press 'q' and a letter, to stop press 'q' again. Macros are NOT saved in between sessions so VIM will forget about it once you quit. If you wish to expressly save a macro then read on vim.wikia.com/wiki/Macros#Saving_a_macro – Jozef Legény Mar 27 '13 at 16:52
  • Oh... I got it. Thks!! – user41745 Mar 27 '13 at 16:57

The recordings are stored in the named buffers. You can place the buffer contents into a file as text, save the file, and reload the text into a buffer in another session. You can use the same technique to clean up the recorded macro. Insert the buffer as text, edit the text, re-save the text into the same buffer.

You must log in to answer this question.