From d066906af3f66e705d5413bb781fcd2435ae288d Mon Sep 17 00:00:00 2001 From: bretello Date: Wed, 9 Dec 2020 02:04:02 +0100 Subject: [PATCH] vim: add extra rule for iptables filetypes --- vim/vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/vimrc b/vim/vimrc index 4f9e14c..a9a4e40 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -33,7 +33,7 @@ set expandtab shiftwidth=4 tabstop=4 "always use spaces autocmd FileType yaml,yml setlocal shiftwidth=2 softtabstop=2 expandtab au BufRead,BufNewFile */playbooks/*.yml set filetype=yaml.ansible -au BufRead,BufNewFile rules.v[46] setlocal filetype=iptables +au BufRead,BufNewFile rules.v[46] *.rules setlocal filetype=iptables if has('persistent_undo') set undodir=$HOME/.vim/undo