Questions tagged [printing]

Printing to Postscript, PDF and other formats

Filter by
Sorted by
Tagged with
10
votes
1answer
446 views

To print with search results highlighted

When we search a pattern in vim, the matches are usually highlighted. However, when we print it out, the highlights disappear. I tried both :hardcopy > my_file.pdf and :TOhtml. Neither retains the ...
6
votes
3answers
1k views

How can I print from vim using the native KDE print dialogue?

I'm using vim from a terminal emulator, and I'd like to be able to print using KDE's native print dialogue. This would let me select options such as printer, collating, number of copies and pages per ...
4
votes
1answer
76 views

How can I print from nvim on linux

I would like to be able to send my currently open text file to the paper printer. I often use nvim to create a daily scratch to do list, and need a paper copy to go with me in my back pocket through ...
3
votes
2answers
444 views

Where does MacVim send its printed files?

I found out about printing using the :hardcopy command, and on my Mac it opens up the output in a PDF named "0.pdf", then the next printing from that file opens "1.pdf", etc. I can save these files, ...
3
votes
1answer
2k views

How to change Vim's :hardcopy printfont?

I would like to be able to print in other than Courier font using the :ha command. Investigating more closely, I found that it is documented that the Courier font is always used: - 'printfont' - The ...
3
votes
1answer
684 views

How can I force a page break in MacVim's printed output?

I've discovered the :hardcopy command, which is the equivalent of the Command-P command in MacVim. I've also found that it accepts ranges. For instance, in my markdown file, I can split the sections ...
3
votes
1answer
1k views

Make hardcopy without a header

I am using Debian 9 and am running Vim in Xfce4 Terminal. I would like to print to hardcopy, :ha or :hardcopy without printing the header. By default the header has the file name and page number at ...
3
votes
0answers
70 views

Can vim mark (highlight) page breaks?

I'd like to see where page breaks are going to occur when I print (either using :hardcopy or a2ps). Is there something analogous to :set colorcolumn=78 ? Except that the line count should get reset ...
2
votes
3answers
1k views

Printing unicode chars?

Is there a solution to printing unicode characters from gvim? See this: Results in this print result (Using a Linux setup and Vim 8.0.)
2
votes
1answer
70 views

How to set printexpr on MacVim persistently?

Using MacVim 8.1.1722, if I print a buffer, it opens a PDF in Preview.app. I want to open the PDF in Google Chrome instead. So I changed the file association so open foo.pdf opens Google Chrome not ...
2
votes
1answer
156 views

Word wrap when printing a file with hardcopy

While in ViM I can set the linebreak option to make a long line wrap at the end of the window avoiding a word to be split in two pieces, but I cannot find an equivalent option while printing a file ...
1
vote
1answer
440 views

vim doesn't print the header in hardcopy

For some reason when I execute a hardcopy command vim doesn't print the header, only text. Here are my setting for printoptions as well as printheader printoptions=left:3pc,number:y,syntax:n,header:2 ...