11
This will fix the problem: Bookmarks –> Manage Profiles –> Terminal Profiles –> Default
check "Disable session-initiated window resizing"
See also "iTerm resize the window itself when using screen".
2
Based on an Ubuntu forum post on problems with screen, I found that adding
termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
fixes the problem, but I have yet to examine it to find out how.
1Did you discover what this magical termcap incantation does? :) – Ether – 2012-03-02T23:18:58.563
Nice, this keeps me from having to figure out how the termcapinfo entry works. – Chas. Owens – 2010-03-09T16:13:05.690
@juanpablo Thank you for this one. That bugger was driving me nuts since I've been switching to neovim a couple of days ago. Upon starting nvim (
NVIM v0.3.8
) my iTerm2 (Build 3.3.2
) window used to shrink in both width and height by one row and column which did not happen with e.g. Vim 8.1. Your solution fixed that issue for me! – Saucier – 2019-08-22T14:14:20.167Your solution helped me greatly. I'm using iTerm2 on Mac OS X Lion, and the path disable session-initiated window resizing was a little different for me: Profiles -> Edit Profiles ... -> Default -> Window -> Disable session-initiated window resizing. Thank you! – mkelley33 – 2012-01-31T20:11:00.327