开发者

How do you pipe a vim buffer through lpr?

I want to print the b开发者_Go百科uffer, and I do it this way:

:%!lpr

Which works, but it erases the buffer and I have to restore it with undo u. Is there a better way to print the buffer (or a range of lines in it)?


:%w !lpr

or, using builtin print command,

:hardcopy
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜