ITerm2 : Prevent lines from vim from going into scroll back

iterm

I was wondering how I can prevent iTerm2 from saving the output from a vim sessions into the scroll back history? This isn't a feature when you are editing confidential files.

Best Answer

Evidently I have the option Preferences-> Profile-> "Save lines to scrollback in alternate screen mode" checked. Unchecking this feature seems to have stopped this behavior.