I use a function called  "TabMessage"  to redirect messages to a new
tab.
It works well except it seems to expand horizontal tabs to spaces.

ie if I run

:TabMessage  global /\t/

I do get a new tab with all the lines from the current buffer that
contain tabs, however in the newly created tab will have converted
the  horizontal tabs to spaces.

Here is the code i got it from:
http://vim.wikia.com/wiki/Capture_ex_command_output

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


Am I doing something wrong?  I would think variables can contain horz.
tabs?

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to