mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-10 20:43:52 -05:00
Update
This commit is contained in:
28
ftplugin/nftables.vim
Normal file
28
ftplugin/nftables.vim
Normal file
@@ -0,0 +1,28 @@
|
||||
if polyglot#init#is_disabled(expand('<sfile>:p'), 'nftables', 'ftplugin/nftables.vim')
|
||||
finish
|
||||
endif
|
||||
|
||||
if exists('b:did_ftplugin')
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
let s:save_cpo = &cpoptions
|
||||
set cpoptions&vim
|
||||
|
||||
setlocal smartindent nocindent
|
||||
setlocal commentstring=#%s
|
||||
setlocal formatoptions-=t formatoptions+=croqnlj
|
||||
|
||||
setlocal comments=b:#
|
||||
|
||||
setlocal tabstop=4 shiftwidth=4 softtabstop=4 expandtab
|
||||
setlocal textwidth=99
|
||||
|
||||
let b:undo_ftplugin = '
|
||||
\ setlocal formatoptions< comments< commentstring<
|
||||
\|setlocal tabstop< shiftwidth< softtabstop< expandtab< textwidth<
|
||||
\'
|
||||
|
||||
let &cpoptions = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
Reference in New Issue
Block a user