From 225e6155367095893eeb15c6f390aa64c6c16a2d Mon Sep 17 00:00:00 2001 From: delphinus Date: Wed, 15 May 2019 12:13:22 +0900 Subject: [PATCH] Disable all features if var is set --- plugin/dwm.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/dwm.vim b/plugin/dwm.vim index 550fa8a..b56be4d 100644 --- a/plugin/dwm.vim +++ b/plugin/dwm.vim @@ -226,6 +226,6 @@ endif if has('autocmd') augroup dwm au! - au BufWinEnter * if &l:buflisted || &l:filetype == 'help' | call DWM_AutoEnter() | endif + au BufWinEnter * if !get(b:, 'dwm_disabled', 0) && (&l:buflisted || &l:filetype == 'help') | call DWM_AutoEnter() | endif augroup end endif