Is it possible to reopen closed window in vim, that was in split?
Something like ctrl+shift+t with browser tabs?
Ctrl-o will bring you back to previous positions in recent files, and you can use it with a count. It even works if you closed the editor entirely. How can I run CPP codes created in different files in Vim eg Main.
Press Control + w , then hit q to close each window at a time. Update: Also consider eckes answer which may be more useful to you, involving :on (read below) if you don't want to do it one window at a time.
:vs#
will split current window vertically and open the alternate file.
It's so simple that you don't need to bind it to key.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With