From fc24fe50099d9af7fb6b1390160e7bcd9329e8c0 Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Wed, 4 Dec 2019 11:22:04 +0300 Subject: [PATCH] vim: ++dockerfile functions --- etc/soft/vim/vim/+ftplugin/dockerfile.vim | 5 +++++ etc/soft/vim/vim/ftplugin/dockerfile/dockerfile.custom.vim | 1 + 2 files changed, 6 insertions(+) create mode 100644 etc/soft/vim/vim/+ftplugin/dockerfile.vim create mode 120000 etc/soft/vim/vim/ftplugin/dockerfile/dockerfile.custom.vim diff --git a/etc/soft/vim/vim/+ftplugin/dockerfile.vim b/etc/soft/vim/vim/+ftplugin/dockerfile.vim new file mode 100644 index 0000000..5f11efc --- /dev/null +++ b/etc/soft/vim/vim/+ftplugin/dockerfile.vim @@ -0,0 +1,5 @@ + +command DockerBuild :split term://DOCKER_BUILDKIT=1 docker build . +command DockerDive execute ":split term://dive " . expand("") +command DockerRun execute ":split term://docker run -it " . expand("") + diff --git a/etc/soft/vim/vim/ftplugin/dockerfile/dockerfile.custom.vim b/etc/soft/vim/vim/ftplugin/dockerfile/dockerfile.custom.vim new file mode 120000 index 0000000..d9b0fd0 --- /dev/null +++ b/etc/soft/vim/vim/ftplugin/dockerfile/dockerfile.custom.vim @@ -0,0 +1 @@ +../../+ftplugin/dockerfile.vim \ No newline at end of file