preservim / vim-pencil

Rethinking Vim as a tool for writing
Other
1.57k stars 38 forks source link

Add -bar suffix to commands to allow use with `|` #94

Closed sullyj3 closed 3 years ago

sullyj3 commented 3 years ago

As you know, vim uses | in the command line for running multiple commands at once. For example:

:Pencil|Goyo

Commands which can be followed by a | must be declared with command-bar (not entirely clear to me why).

My use case is in making an alias for a pager for prose: vim -c 'Pencil|Goyo', but it could be potentially useful for a variety of reasons.

alerque commented 3 years ago

Thanks for taking the time to contribute this! Most of these probably aren't useful in combinations but a few are and I don't see any harm in allowing them all to be used this way.