diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-27 19:47:32 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-27 19:47:32 +0200 |
commit | f95026252c5a31242903a98c741887696dfbb11f (patch) | |
tree | cd697cdc96c20a44f03ff3aacc67f78fdcc6ece5 /ftplugin/puppet.vim | |
parent | 4f3df59be709bf0d5c5c67dc804fde49abdc2700 (diff) | |
download | vim-polyglot-f95026252c5a31242903a98c741887696dfbb11f.tar.gz vim-polyglot-f95026252c5a31242903a98c741887696dfbb11f.zip |
Update everything, closes #435
Diffstat (limited to 'ftplugin/puppet.vim')
-rw-r--r-- | ftplugin/puppet.vim | 35 |
1 files changed, 28 insertions, 7 deletions
diff --git a/ftplugin/puppet.vim b/ftplugin/puppet.vim index 3c843314..53247958 100644 --- a/ftplugin/puppet.vim +++ b/ftplugin/puppet.vim @@ -1,11 +1,32 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 -setl ts=2 -setl sts=2 -setl sw=2 -setl et -setl keywordprg=puppet\ describe\ --providers -setl iskeyword=-,:,@,48-57,_,192-255 -setl cms=#\ %s +" Vim filetype plugin +" Language: Puppet +" Maintainer: Tim Sharpe <tim@sharpe.id.au> +" URL: https://github.com/rodjek/vim-puppet +" Last Change: 2019-08-31 + +if (exists("b:did_ftplugin")) + finish +endif +let b:did_ftplugin = 1 + +setlocal tabstop=2 +setlocal softtabstop=2 +setlocal shiftwidth=2 +setlocal expandtab +setlocal keywordprg=puppet\ describe\ --providers +setlocal iskeyword=:,@,48-57,_,192-255 +setlocal comments=sr:/*,mb:*,ex:*/,b:# +setlocal commentstring=#\ %s + +setlocal formatoptions-=t formatoptions+=croql +setlocal formatexpr=puppet#format#Format() + +let b:undo_ftplugin = " + \ setlocal tabstop< tabstop< softtabstop< shiftwidth< expandtab< + \| setlocal keywordprg< iskeyword< comments< commentstring< + \| setlocal formatoptions< formatexpr< + \" endif |