DEV Community

loading...

Discussion on: Editing Kubernetes Secrets Inline

Collapse
austinbv profile image
Austin Vance Author

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.

Collapse
pbnj profile image
Peter Benjamin (he/they) • Edited

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).