From 60b660cf6f2849b384096cda88eb8ec2b115c08a Mon Sep 17 00:00:00 2001 From: hermes85pl Date: Mon, 26 Oct 2015 18:37:33 +0100 Subject: [PATCH] Fix autocommand events This fixes issue #34. --- plugin/better-whitespace.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/better-whitespace.vim b/plugin/better-whitespace.vim index 8d00360..b7c38ba 100644 --- a/plugin/better-whitespace.vim +++ b/plugin/better-whitespace.vim @@ -194,7 +194,7 @@ command! -nargs=* CurrentLineWhitespaceOff call CurrentLineWhitespaceOff( < command! CurrentLineWhitespaceOn call CurrentLineWhitespaceOn() " Process auto commands upon load -autocmd BufWinEnter * call SetupAutoCommands() +autocmd BufWinEnter,FileType * call SetupAutoCommands() autocmd ColorScheme * call WhitespaceInit() " Executes all auto commands