我在工作中使用VIM作为我的主要文本编辑器,我经常在几个窗口中同时打开10-15个文件,其中有几个选项卡,每个选项卡都有自己的分割窗口.我喜欢使用VIM,但每次开发服务器被弹回或机器崩溃时我都不想重新进行整个设置.有没有办法让VIM记住一个设置,比如许多IDE中的“项目”功能?或者我不得不每次以相同的方式打开所有文件?
看看
原文链接:https://www.f2er.com/bash/385213.html:mksession
命令.
A Session keeps the Views for all windows,plus the global settings. You can save a Session and when you restore it later the window layout looks the same. You can use a Session to quickly switch between different projects,automatically loading the files you were last working on in that project.