diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-06-08 13:32:04 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-06-08 13:32:04 +0200 |
commit | 8f2a71643a90a8aff03e69ba2b1f8fdb02cebdcf (patch) | |
tree | f35677b1c7636789fa6ffaa5aed4b7aa0e5b50d4 /ftplugin | |
parent | af763ef221033974abf502ebce01a464baeca2c6 (diff) | |
download | vim-polyglot-8f2a71643a90a8aff03e69ba2b1f8fdb02cebdcf.tar.gz vim-polyglot-8f2a71643a90a8aff03e69ba2b1f8fdb02cebdcf.zip |
Add hcl support, closes #403
Diffstat (limited to 'ftplugin')
-rw-r--r-- | ftplugin/hcl.vim | 41 | ||||
-rw-r--r-- | ftplugin/tmux.vim | 5 |
2 files changed, 41 insertions, 5 deletions
diff --git a/ftplugin/hcl.vim b/ftplugin/hcl.vim new file mode 100644 index 00000000..c648150c --- /dev/null +++ b/ftplugin/hcl.vim @@ -0,0 +1,41 @@ +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'hcl') != -1 + finish +endif + +" File: ftplugin/hcl.vim +" Author: BABAROT <b4b4r07@gmail.com> +" Description: FileType Plugin for HCL +" Last Change: Nob 05, 2015 + +if exists('b:did_ftplugin') + finish +endif +let b:did_ftplugin = 1 + +let s:save_cpo = &cpo +set cpo&vim + +setlocal commentstring=#\ %s + +" Add NERDCommenter delimiters + +let s:delims = { 'left': '#' } +if exists('g:NERDDelimiterMap') + if !has_key(g:NERDDelimiterMap, 'hcl') + let g:NERDDelimiterMap.hcl = s:delims + endif +elseif exists('g:NERDCustomDelimiters') + if !has_key(g:NERDCustomDelimiters, 'hcl') + let g:NERDCustomDelimiters.hcl = s:delims + endif +else + let g:NERDCustomDelimiters = { 'hcl': s:delims } +endif +unlet s:delims + +let b:undo_ftplugin = "" + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sw=4 ts=4: diff --git a/ftplugin/tmux.vim b/ftplugin/tmux.vim deleted file mode 100644 index 3dfb60fb..00000000 --- a/ftplugin/tmux.vim +++ /dev/null @@ -1,5 +0,0 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'tmux') != -1 - finish -endif - -setlocal commentstring=#\ %s |