Vim shell: Revision history

From wikinotes

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

10 February 2024

  • curprev 15:5115:51, 10 February 2024Will talk contribs 566 bytes −1 →‎Piping to Commandline
  • curprev 15:5015:50, 10 February 2024Will talk contribs 567 bytes +567 Created page with "You can interact with the commandline from vim's command mode. = Piping to Commandline = <blockquote> <source lang="vim"> :w !sh " execute the current file using /bin/sh :w !less " pipe entire file to less :'<,'>!less " pipe visual-selection to less system('xclip', @") " pipe register '@"' to xclip executable's stdin " pipe register '@"' to xclip (preserving NULLs if binary data) let formatted = getreg('r', 0, 1) + (getregtype('r') isnot# 'v' ? [''] : [])..."