How can VIM be opened in the same state as the last time it was closed?
过去多啦不再A梦2017-05-16 16:41:03
0
6
736
Like Sublime and Webstorm, when you open it, it will be in the same state as when you last closed it?
I think this is quite practical, because basically I open the same project every time.
:mksession will save a Session.vim in the current directory. Just vim -S Session.vim next time will be fine
Okay, I found an easier way:
https://github.com/xolox/vim-session
Update: I found that the above method is still not easy to use,
Finally, I found the artifact,
https://github.com/tmuxinator/tmuxinator
Just fucking google it :)
Isn’t that the way it is?
vim fileName, save after editing, the next time you open the editing position will keep the position when you last closed it