Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I save current window position and buffer in register in VIM

Tags:

vim

Sometimes, I split my VIM to 4 windows, and open different files in these windows. I want to know if I can save current scenario to a register, and get it back whenever I want?

like image 324
Rocky Avatar asked Feb 22 '23 00:02

Rocky


1 Answers

You can save it into the file. You can read about it here: :help mksession

You also can use plugins to manage sessions, for instance, session.vim.

Right now i don't know how to save it to a register instead of file.

like image 129
Dmitry Frank Avatar answered Mar 22 '23 23:03

Dmitry Frank