Why isn't VIM storing macros across sessions?

Posted by dotancohen on Super User See other posts from Super User or by dotancohen
Published on 2012-11-23T10:54:16Z Indexed on 2012/11/23 11:03 UTC
Read the original article Hit count: 230

Filed under:
|

In VIM 7.3 on Ubuntu Server 12.04.1, VIM forgets macros and registers after closing. I do have set nocompatible in .vimrc and the command :set viminfo? gives this result:

viminfo='100,<50,s10,h

What might be preventing the macros and registers from being stored across close / open?

Note that I am not interested in storing mappings for long term use in .vimrc. Rather, sometimes (such as during refactoring) I need to perform a simple operation on a few files and I find it easier to do in VIM than with Perl. I just need the macros and registers stored across open / close, which I do have working on other servers.

Thanks.

© Super User or respective owner

Related posts about vim

Related posts about macros