Created
November 16, 2010 01:38
-
-
Save namutaka/701292 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let cmd = "!ls" | |
function! s:RunCmd() | |
let tmpfile=tempname() | |
silent exe cmd . " < " . expand("%") . " > " . tmpfile . " 2>&1" | |
execute ":sn " . tmpfile | |
endf | |
com! Run call s:RunCmd() | |
map <C-.> :call s:RunCmd()<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment