> According to the shfmt project page, https://github.com/mvdan/sh, > someone has written a Vim plugin for shfmt, > https://github.com/z0mbix/vim-shfmt. You may want to check that > out, too.
This probably is a better approach. I am trying to set it up. I use pathogen. So I set it up like this. ~/.vim$ ls -dlgG bundle-available/vim-shfmt drwxr-xr-x 7 224 2021/04/02-19:51:21 bundle-available/vim-shfmt ~/.vim$ ls -dlgG bundle/vim-shfmt lrwxr-xr-x 1 29 2021/04/02-19:52:09 bundle/vim-shfmt -> ../bundle-available/vim-shfmt It is not clear to me what instructions on https://github.com/z0mbix/vim-shfmt I need to following, as its author does not assume users use pathogen. Do you know? https://github.com/z0mbix/vim-shfmt As of now, when I try `:Shfmt -p`, vim shows this error. Error detected while processing function shfmt#shfmt: line 11: Shfmt returned an error (often due to wrong syntax). Undoing changes. 9 more lines; before #1 0 seconds ago -- Regards, Peng -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CABrM6w%3D-FV5Xb9Dzd8x5v3q5CK8ams7cXrym5oBRNJ2d1tQh5w%40mail.gmail.com.