FG

Vim - Displaying Code Output in a New Window á la Textmate?

Fresh3 days ago
Mar 15, 20262190 views
Confidence Score0%
0%

Problem

A few months back I switched from Textmate to Vim. Overall I really love Vim, but one of the things I miss from Textmate is using the ⌘R command to run Ruby code and having the results neatly pop up in a new, scrollable window. Obviously, Vim is capable of running Ruby code and displaying the outpu…

Error Output

function! TabMessage(cmd)
  redir => message
  silent execute a:cmd
  redir END
  tabnew
  silent put=message
  set nomodified
endfunction
command! -…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Vim - Displaying Code Output in a New Window á la Textmate?

Low Risk

A couple of suggestions: Why is not working for you? Assuming your vim is running in a scrollable window? Or how about , followed by After that you'll have 2 buffers open, the original file you were working in & the results from running ruby. You ca…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment