I'm new to Vim I only know how to navigate and save sessions with :mksession so far but I'm unsure of how I could save my splits this is what my settup looks like.


One side would be Vim the other would be the regular terminal I open Vim within a terminal, I tried looking for help on youtube but all videos are showing a application called "tmux" and when I went to check if this application was what allowed me to split my terminal I couldn't find any thing on my computer about it.

I'm on Lubuntu 22.04.2 LTS (Jammy Jellyfish) LXQT version 0.17.0

  • 1
    You could open the terminal inside Vim. See :terminal
    – muru
    Commented Jun 16, 2023 at 7:31
  • There is so much hided in the screen shot that it is hard to understand. Could you provide an alternative version? Commented Jun 16, 2023 at 7:48
  • Could you also tell us which terminal you are using? Commented Jun 16, 2023 at 7:49
  • @muru I considered this but I love the fact that I can slide my mouse back and forth to change the panel sizes.
    – DudlyDog
    Commented Jun 16, 2023 at 8:03
  • @VivianDeSmedt I just covered up my username I'm using the standard Lubuntu terminal I right clicked my mouse scrolled down to the "split terminal vertically" option and then opened up Vim. Still cannot figure a way to save this layout.
    – DudlyDog
    Commented Jun 16, 2023 at 8:11

1 Answer 1


You can achieve what you want by running a terminal inside Vim/Neovim with the :terminal command, as muru recommended. Both will remember your terminal splits by default when running :mksession. Neovim will allow you to resize the splits with your mouse by default, but if you are using Vim you can enable the feature with set mouse=nvi

  • Neovim seems like a good choice for me but I will stick with Vim for now thank you!
    – DudlyDog
    Commented Jun 16, 2023 at 9:02
  • 1
    Or :set mouse=a
    – D. Ben Knoble
    Commented Jun 17, 2023 at 14:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.