Vim Read Shell Output Into Buffer¶ :vnew | r ! <some_command> To use the current file number in the command use, #. :vnew | r ! echo # | layitout