DEV Community

Discussion on: Easily center content in vim

Collapse
 
vinneycavallo profile image
vinney cavallo

I use tmux for splits and panes (and more) in my terminal. If you haven't looked into it I'd recommend checking it out.

One downside I could see to creating this very narrow, centered experience by using terminal splits (rather than doing it in vim) is that everything else you'd be doing in vim would be constrained to that narrow pane as well - like anything in the vim command line, or the quickfix window or anything else.

Another sort of tangential but maybe helpful thing: if you find yourself needing to use the command line briefly but don't want to open up a terminal split you can hit Ctrl-Z to 'background' the current process (vim, in this case), use the prompt as much as you need and then enter the command fg to foreground the last process again (vim). While you're operating in this backgrounded mode you can enter jobs to see the list of backgrounded processes.

I hope that helps!