How can I save my vim split windows layout? -


i split window(about 10 lines, top of screen) when i'm writing something, in order reference other files easily.

i want save windows layout(just splitting layout without editing files), can start working quickly.

i tried put

set sessionoptions-=blank set sessionoptions-=tabpages set sessionoptions-=winsize 

in .vimrc , then

:mksession file.vim 

but when try vim -s file.vim, can't see layout new windows, why?

thank you

try this:

:set sessionoptions=blank,winsize,tabpages,resize 

when -=, removing options sessionoptions. assume want use += instead. default, sessionoptions set buffers,winsize,options,help,blank. using =, getting rid of options don't want.


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -