google / vim-codefmt

Vim plugin for syntax-aware code formatting
Apache License 2.0
1.11k stars 114 forks source link

Allow commands to be followed by a `|`. #209

Closed chaoren closed 1 year ago

chaoren commented 1 year ago

This is useful for allowing simple conditional formatting of buffers, e.g.,

autocmd FileType * if condition | AutoFormatBuffer | endif
dbarnett commented 1 year ago

Seems reasonable, thanks for the improvement!

Merging.