From 1bca295b6b49ca345c23c8726dc4d2cef387960d Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Wed, 20 Mar 2019 16:44:47 +0000 Subject: [PATCH] Do not load up on *.http files automatically. --- ftdetect/roast.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ftdetect/roast.vim b/ftdetect/roast.vim index 4a23e6b..412cfc6 100644 --- a/ftdetect/roast.vim +++ b/ftdetect/roast.vim @@ -1 +1,5 @@ -au BufRead,BufNewFile *.roast,*.http setf roast +au BufRead,BufNewFile *.roast setf roast + +if get(g:, 'roast_http_ext', 0) == 1 + au BufRead,BufNewFile *.http setf roast +endif