I know people who use ^Z to suspend vim and then foreground it again.
I know people who use ^Z to suspend vim and then foreground it again.
You don't mind losing all your editor state? If you don't like working with multiple terminal windows, why not open a term within vim with `:term`?
I run a pretty light vanilla vimrc (60 lines maybe) and with two lines you can enable vim undofiles and returning the cursor to the last location upom reopening a file. For me, quitting vim is functionally equivalent to ^Z?
Retaining positions, buffers, and edit history between sessions is all straightforward in vanilla vim though. Unless you run an autolinter or formatter that edits your target file and wipes the history.
I don't use any other LSPs which have a long warmup time, but if I did then they can also be used behind ra-multiplex.
In my configuration vim will save (among other things):
- Cursor position
- Undo history
- Register state
:term is clunky for me, mainly because my muscle memory is to just :wq
I got it working as seamlessly as I could once just in an attempt to use it but I stopped pretty quickly.
So it's fine for X11 terminals, but not for /dev/tty2
Don't forget you can just :!some-shell-command though - not just in vim but in lots of programs even.