How to execute ‘base64 --decode’ on selected text in Vim?

后端 未结 5 2030
北恋
北恋 2021-02-06 23:58

I’m trying to execute base64 --decode on a piece of text selected in Visual mode, but it is the entire line that seems to be passed to the base64 comma

5条回答
  •  隐瞒了意图╮
    2021-02-07 00:46

    You can use Python instead, which should work.

    Select lines that you want to decode in Visual mode (via V), then execute the following command:

    :'<,'>!python -m base64 -d
    

提交回复
热议问题