From 664aa988f6d9cdb7b75218666fbe348c85ef8b29 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 4 Sep 2019 15:44:43 +0200 Subject: Update --- ftplugin/terraform.vim | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'ftplugin/terraform.vim') diff --git a/ftplugin/terraform.vim b/ftplugin/terraform.vim index e8ed9fb3..9b4cc2bd 100644 --- a/ftplugin/terraform.vim +++ b/ftplugin/terraform.vim @@ -26,25 +26,14 @@ if !has('patch-7.4.1142') endif if get(g:, 'terraform_fold_sections', 0) - setlocal foldmethod=expr - setlocal foldexpr=terraform#folds() - setlocal foldlevel=1 - setlocal foldtext=terraform#foldText() - let b:undo_ftplugin .= ' foldmethod< foldexpr< foldlevel< foldtext<' + setlocal foldmethod=syntax + let b:undo_ftplugin .= ' foldmethod<' endif " Set the commentstring -let &l:commentstring = get(g:, 'terraform_commentstring', '#%s') +setlocal commentstring=#%s let b:undo_ftplugin .= ' commentstring<' -" Re-map the space bar to fold and unfold -if get(g:, 'terraform_remap_spacebar', 0) - nnoremap za - onoremap za - vnoremap zf - let b:undo_ftplugin .= '|unmap ' -endif - if get(g:, 'terraform_align', 0) && exists(':Tabularize') inoremap = =:call terraform#align()a let b:undo_ftplugin .= '|iunmap =' -- cgit v1.2.3