Skip to content

Instantly share code, notes, and snippets.

@kybr
Created June 14, 2019 02:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kybr/846ab4af3a196f6647fa71793694d66b to your computer and use it in GitHub Desktop.
Save kybr/846ab4af3a196f6647fa71793694d66b to your computer and use it in GitHub Desktop.
function! SendFile()
let code = join(getline(0, line("$")), "\n")
silent execute "!send-file <<< " . shellescape(code, 1)
" redraw!
endfunction
map <silent> ,h :call SendFile()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment