From 6bfcfb8f89394e58ac2285a49c6fa3b03828880c Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Mon, 24 Aug 2015 16:18:49 +0200 Subject: [PATCH] Hide buffers instead of closing them --- .vimrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.vimrc b/.vimrc index fd6bd4d..66b0dbf 100644 --- a/.vimrc +++ b/.vimrc @@ -183,6 +183,10 @@ set smartcase " reload file when changes happen in other editors set autoread +" hide buffers instead of closing them (so no saving is needed and undo and +" marks are preserved) +set hidden + " 2008-04-14 with the if-statement added at 2008-11-19 if &term == "xterm" || &term == "xterm-256color" || &term == "screen-bce" || &term == "screen-256color" || &term == "screen" set t_Co=256