开发者

How do you pipe a vim buffer through lpr?

开发者 https://www.devze.com 2023-02-02 00:33 出处:网络
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 ran

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

精彩评论

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

关注公众号