Guest User

Untitled

a guest
Jun 21st, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. fun! RunToBuffer()
  2. let target = input("Command: ")
  3. if target != ""
  4. vnew
  5. echo "Running command: '".target."' from ".getcwd()
  6. let monkey = append(0, split(system(target), '\n'))
  7. set ro
  8. set nomod
  9. endif
  10. return ""
  11. endfun
Add Comment
Please, Sign In to add comment