On Apr 14, 2011, at 11:23 AM, Christian Brabandt wrote: > 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])
I guess I'm not understanding this, Christian. Whether I use :let or :set, do it in insert mode or on the command line, all that happens is that a " is inserted after the =. ------------------------------------------------------------------------------------------ Eric Weir Decatur, GA USA [email protected] -- 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
