Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fun! RunToBuffer()
- let target = input("Command: ")
- if target != ""
- vnew
- echo "Running command: '".target."' from ".getcwd()
- let monkey = append(0, split(system(target), '\n'))
- set ro
- set nomod
- endif
- return ""
- endfun
Add Comment
Please, Sign In to add comment