Adding upstream version 0.20200629.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
86ec2cb15a
commit
fced2a7e75
6 changed files with 122 additions and 0 deletions
11
ftdetect/nftables.vim
Normal file
11
ftdetect/nftables.vim
Normal file
|
@ -0,0 +1,11 @@
|
|||
function! s:DetectFiletype()
|
||||
if getline(1) =~# '^#!\s*\%\(/\S\+\)\?/\%\(s\)\?bin/\%\(env\s\+\)\?nft\>'
|
||||
setfiletype nftables
|
||||
endif
|
||||
endfunction
|
||||
|
||||
augroup nftables
|
||||
autocmd!
|
||||
autocmd BufRead,BufNewFile * call s:DetectFiletype()
|
||||
autocmd BufRead,BufNewFile *.nft,nftables.conf setfiletype nftables
|
||||
augroup END
|
Loading…
Add table
Add a link
Reference in a new issue