From 644b217e709e8aec4b5c71a93a17254280e9c2d7 Mon Sep 17 00:00:00 2001 From: Aron Griffis Date: Wed, 26 Feb 2020 07:41:15 -0500 Subject: [PATCH] fix(zprint): vroom no-op system hijacks Fixes https://github.com/google/vim-codefmt/issues/140 --- vroom/zprint.vroom | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vroom/zprint.vroom b/vroom/zprint.vroom index f17dad3..1945fba 100644 --- a/vroom/zprint.vroom +++ b/vroom/zprint.vroom @@ -18,6 +18,7 @@ The zprint formatter expects the zprint executable to be installed on your syste :FormatCode zprint ! cd .* zprint .* + $ no-op The name or path of the zprint executable can be configured via the zprint_executable flag if the default of "zprint" doesn't work. @@ -25,6 +26,7 @@ zprint_executable flag if the default of "zprint" doesn't work. :Glaive codefmt zprint_executable='/usr/local/bin/zprint' :FormatCode zprint ! cd .* /usr/local/bin/zprint .* + $ no-op :Glaive codefmt zprint_executable='zprint' You can format an entire buffer with :FormatCode. @@ -82,6 +84,7 @@ Zprint is the default formatter for the clojure file type, so calling :set filetype=clojure :FormatCode ! cd .* zprint .* + $ no-op :set filetype& The default setting of zprint_options propagates Vim's textwidth setting to @@ -90,4 +93,5 @@ zprint's command-line. :set textwidth=123 :FormatCode zprint ! cd .* zprint .*:width 123.* + $ no-op :set textwidth&