Is there a way to export my current vim maps and functions as a .vimrc?
I lost my late开发者_如何学JAVAst version of my .vimrc and I have no snapshots of it anywhere but I do have a vim still open that has the new functions and mappings. I was hoping that maybe someone would know how to "export" that running vim's maps and functions out to a file so I could recreate the .vimrc?
Use :mkvimrc
(or :mksession
if you also want to save any buffer-local state too).
精彩评论