Rook
Rook

Reputation: 62598

Passing the value of one option to another

A rather silly Vim question, but I've something to do, and I'm not finding the solution in help. So here goes ...

(this is just an example, I'm not necessarily interested in guifont and printfont only)

set guifont?

gives out ...

How can I say,

set printfont=guifont

i.e. pass the string you get from guifont? to printfont?

Upvotes: 3

Views: 63

Answers (1)

lucapette
lucapette

Reputation: 20724

let &printfont = &guifont

seems to work fine.

Upvotes: 3

Related Questions