How can VIM be opened in the same state as the last time it was closed?
过去多啦不再A梦
过去多啦不再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.

过去多啦不再A梦
过去多啦不再A梦

reply all(6)
过去多啦不再A梦

:mksession will save a Session.vim in the current directory. Just vim -S Session.vim next time will be fine

迷茫
"记住最后一次编辑的位置
autocmd BufReadPost *
  \ if line("'\"") > 1 && line("'\"") <= line("$") |
  \   exe "normal! g`\"" |
  \ endif


Peter_Zhu

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

PHPzhong

Just fucking google it :)

Ty80

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template