Skip to content

Instantly share code, notes, and snippets.

@mhinz
Created April 12, 2018 14:58
Show Gist options
  • Save mhinz/e04e67f7a28751fe877319b4a8f241cd to your computer and use it in GitHub Desktop.
Save mhinz/e04e67f7a28751fe877319b4a8f241cd to your computer and use it in GitHub Desktop.
command! -nargs=* -range=% F
\ let lines = getline(<line1>, <line2>) |
\ enew |
\ call setline(1, lines) |
\ %!<args>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment