Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I'm using vim 7.2 in iterm2 (Snow Leopard). I'd like to save/restore buffers between vim sessions automatically, and added this line to my vimrc:

set viminfo+=%

Now, I open a couple of files and quit vim. I expect them to be there, but I get the home screen. This is the output of :set viminfo

viminfo='100,<50,s10,h,%

Am I missing any step here?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
183 views
Welcome To Ask or Share your Answers For Others

1 Answer

What you need is reading :help mksession.

And the Vim Wiki(a) has some tips to use it automatically.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...