Nice tip - I love the <cWORD> approach to a lot of things. One limitation is <cWORD> uses vi's word selection. If my secret is a multiline certificate, the contents of a yaml file, or has special characters this won't work.
If you want to visually select the text to pass to an external program, by default vim passes whole lines (e.g. :'<,'> ! base64) , but vis.vim plugin might help (e.g. :'<,'>B ! base64).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice tip - I love the
<cWORD>
approach to a lot of things. One limitation is<cWORD>
uses vi's word selection. If my secret is a multiline certificate, the contents of a yaml file, or has special characters this won't work.That's true.
If you want to visually select the text to pass to an external program, by default vim passes whole lines (e.g.
:'<,'> ! base64
) , but vis.vim plugin might help (e.g.:'<,'>B ! base64
).