On Thu, April 14, 2011 5:01 pm, Ben Fritz wrote: > After you find a font you can set it permanently in your .gvimrc as > others have suggested. The best way I've found to do this is, while > editing your .gvimrc, with the desired font set, enter in insert mode: > > let guifont= > > then still in insert mode, type CTRL-R followed by = to bring up the > "expression register". Finish by entering &guifont in the prompt and > pressing Enter. This should insert the current value of the option > into your buffer. This takes advantage of a few things: > > 1. You can access Vim option values in expressions/scripts using & > followed by the option name. I'm not sure of the help reference on > this, the closest I can come is :help :let-& > 2. Inserting the contents of a register, :help i_CTRL-R > 3. Specifically, the expression register, :help @= (see :help > registers as well for more that are available)
That should either be :let &guifont="<C-R>=&guifont<CR>" or :set guifont=<C-R>=&guifont<CR> (where <C-R> denote a literal Ctrl-R and <CR> a literal Carriage Return [Enter]) It shouldn't matter which way you use. (except that :let might require a vim built with +eval which should be possible with a normal built while :set should also work with a small or even tiny built of vim) regards, Christian -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
