This commit 
https://github.com/z0mbix/vim-shfmt/commit/1f0e72322a8cb38805c276f7f3d10e21822b5376
 
to the Readme of the vim-shfmt plugin explains how to set up &formatprg to 
indent shell scripts with shfmt.

Le samedi 3 avril 2021 à 03:50:43 UTC+2, Gary Johnson a écrit :

> On 2021-04-02, Peng Yu wrote:
> > > You can enable it in your vimrc for sh and bash files like this:
> > >
> > > au FileType sh setlocal equalprg=shfmt
> > 
> > I put the above line in my ~/.vimrc. It just works. Thanks.
> > 
> > It seems that this is the simplest solution.
> > 
> > I don't know what is the advantage of the shfmt vim plugin is. Do you 
> know?
>
> No. I wondered that, too.
>
> Regards,
> Gary
>
>

-- 
-- 
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/ae975a06-ee6b-4944-b214-8f94b45e3348n%40googlegroups.com.

Reply via email to