Dup Goto 📝

External-commands

PT2/editor/vim 07-31 13:46:46
To Pop
16 lines, 116 words, 624 chars Monday 2023-07-31 13:46:46
:!ls          # run ls
:r! ls        # run ls and paste output into buffer
:w !pc        # pipe buffer into command pc
:'<,'>w !pc   # pipe vis-selected lines into pc
:4,6w !pc     # pipe lines 4..6 into pc

now these all give a Press ENTER message. To avoid this,

:silent w !pc
:silent '<,'>w !pc

this latter one is annoying, so hopefully I can write a function and key-combo to do this, as I use pc and pp as platform-agnostic commands to read and write from the system clipboard, and get X and put X to store stuff in files in a ~/.jstore/ directory as a means of having a persistent clipboard.