I have a func:
echo printf("%.10s", longline)
But if longline is longer than screen line, then it will be broken down
into several lines, I have to use q to quit the echo message, that's
not what I want. So question is, how to get the width of screen line, so
I can use:
sline = screenline
echo printf("%." . sline . "s", longline)
to truncate the longline to fit the screen?
--
Regards,
Van.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---