From bbee246aaeb7fb689c7a2ae2bb911e34cabe7b00 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 14 Oct 2020 23:01:53 +0200 Subject: Add and fix tests from upstream vim --- ftplugin/Dockerfile.vim | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 ftplugin/Dockerfile.vim (limited to 'ftplugin/Dockerfile.vim') diff --git a/ftplugin/Dockerfile.vim b/ftplugin/Dockerfile.vim deleted file mode 100644 index 85fb1ee5..00000000 --- a/ftplugin/Dockerfile.vim +++ /dev/null @@ -1,37 +0,0 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dockerfile') == -1 - -" Define comment string -setlocal commentstring=#\ %s - -" Enable automatic comment insertion -setlocal formatoptions+=cro - -function! DockerfileReplaceInstruction(original, replacement) - let syn = synIDtrans(synID(line("."), col(".") - 1, 0)) - if syn != hlID("Comment") && syn != hlID("Constant") && strlen(getline(".")) == 0 - let word = a:replacement - else - let word = a:original - endif - let g:UnduBuffer = a:original - return word -endfunction - -inoreabbr from =DockerfileReplaceInstruction("from", "FROM") -inoreabbr maintainer =DockerfileReplaceInstruction("maintainer", "MAINTAINER") -inoreabbr run =DockerfileReplaceInstruction("run", "RUN") -inoreabbr cmd =DockerfileReplaceInstruction("cmd", "CMD") -inoreabbr label =DockerfileReplaceInstruction("label", "LABEL") -inoreabbr expose =DockerfileReplaceInstruction("expose", "EXPOSE") -inoreabbr env =DockerfileReplaceInstruction("env", "ENV") -inoreabbr add =DockerfileReplaceInstruction("add", "ADD") -inoreabbr copy =DockerfileReplaceInstruction("copy", "COPY") -inoreabbr entrypoint =DockerfileReplaceInstruction("entrypoint", "ENTRYPOINT") -inoreabbr volume =DockerfileReplaceInstruction("volume", "VOLUME") -inoreabbr user =DockerfileReplaceInstruction("user", "USER") -inoreabbr workdir =DockerfileReplaceInstruction("workdir", "WORKDIR") -inoreabbr arg =DockerfileReplaceInstruction("arg", "ARG") -inoreabbr onbuild =DockerfileReplaceInstruction("onbuild", "ONBUILD") -inoreabbr stopsignal =DockerfileReplaceInstruction("stopsignal", "STOPSIGNAL") - -endif -- cgit v1.2.3