I want to print a buffer, and I do it like this:
:%!lpr
Which works, but it deletes the buffer, and I need to restore it with u . Is there a better way to print a buffer (or a range of lines in it)?
u
:%w !lpr
or, using the built-in print command,
:hardcopy
Source: https://habr.com/ru/post/1334097/More articles:Should a parent class reference child classes? - javaAndroid Saving data in the application - androidCaching and replacing output in MVC 3 - c #Cross Reference Assemblies - .nethttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1334096/binding-multiple-comboboxes-to-1-list&usg=ALkJrhi-5_JZkZ9oPWbDw0ftTAU_qBCNRQCan't get a spinner to appear - iosError exportDocument () "Target folder does not exist" - photoshop-scriptCan I specify command lines on the command line? - shellUpdating various fields of a structure at the same time - is it safe? - cGoogle Apps - sending email with an alias - emailAll Articles