3 ms·
> There is typically not enough space on the screen to have all useful information visible and then it's simply distracting. Most of the time I have two panes
by crabbone 3y ago
> There is typically not enough space on the screen to have all useful information visible and then it's simply distracting.
Most of the time I have two panes open (side-by-side, splitting the screen vertically). This is plenty of space on 23" monitor, and it even feels somewhat empty on 27". Sometimes I hide another plane (C-b z), especially if I need to switch into character mode and copy the contents of the terminal window. Another case when I need to hide other panes is when I need to read logs from journald and some of those have very long lines, and It's just very uncomfortable to have to move the pager left and right.
I also usually have 3-5 windows open. Eg. because I'm logged in as different users (so, I also rename the windows to help remember that).
Ultimately though, two panes is the way to have the editor open in one pane and something that the code written in the editor affects in the other. For example: one pane has Helm charts, another pane has kubectl running with some pre-configured environment and deploying / removing those charts. Or debugging a Python program, where in one pane I have the source and in another I'm running the program and giving instructions to the debugger. So, eg. once the debugger prints the location in the source it's at, you copy it and navigate to that location in another pane to examine the broader context.
> if you have your code limited to 80 columns, you may still not be able to see the whole lines
Are you like on a 13" laptop or something? If that's your working condition, it sucks for you anyways. It's just not a comfortable working environment. You can find a second-hand 23" monitor for a few bucks, sometimes nothing -- people might give it away as long as you collect it from them. And you don't need any super characteristic for programming... so, why not invest a little bit and make your life more comfortable?