]> git.rmz.io Git - dotfiles.git/commitdiff
vim: always mark terminal as bufhidden=hide
authorSamir Benmendil <samir.benmendil@ultrahaptics.com>
Fri, 26 Oct 2018 16:22:09 +0000 (17:22 +0100)
committerSamir Benmendil <samir.benmendil@ultrahaptics.com>
Fri, 26 Oct 2018 16:22:09 +0000 (17:22 +0100)
vim/vimrc

index 1a4f288b135af0c69cd695836893123b4469c1c7..6fe4aec04ae7dd25306d91747eb715440754d35d 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -332,6 +332,11 @@ augroup END
 command! NoAutoChecktime let b:autochecktime=0
 command! ToggleAutoChecktime let b:autochecktime=!get(b:, 'autochecktime', 0) | echom "b:autochecktime:" b:autochecktime
 
+augroup terminal
+  au!
+  au TerminalOpen * if &buftype == 'terminal' | setlocal bufhidden=hide | endif
+augroup END
+
 " bindings {{{1
 
 " allow both <space> and \ to be <leader>