I found out there's a neat command called bufname which prints out the
name of the buffer that I'm working on. Now, I can't believe I'm
having trouble with this, but how do I actually *paste* the output of
that on the current line? I've tried :echo bufname("%"), which prints
it on the command line. That's not what I want. :bufname("%") gives an
error about an unrecognized command, and various other combinations of
:, %, and ! don't seem to do the trick either.
This seems like it's relatively basic - executing a command and
putting the output on the current line. I'm not quite sure what I'm
doing wrong. Any ideas?
Thanks,
Ven
--
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