How I can save the state of the vim after exit and then restore this state when I open it?
So it seems like it did not close vim.
How I can save the state of the vim after exit and then restore this state when I open it?
So it seems like it did not close vim.
Use vim sessions, it's an awesome feature! (Adding basic usage here--Kent's answer points to these details.)
To save the current views+settings for your current editing session do:
:mksession path/to/my-session-file.vim
To open/restore the session do:
% vim -S path/to/my-session-file.vim
To overwrite previously saved session with the current one just add a !:
:mksession! path/to/my-session-file.vim
do you mean vim session?
give it a shot on google, you got many articles about vim session.
like http://web.archive.org/web/20120118230658/http://vim.runpaint.org/editing/managing-sessions/
or in vim
:h session