In Fedora15, I was originally using vim, with all my settings defined in my ~/.vimrc file. I recently installed vim-X11, and have now transitioned to gvim. I defined a ~/.gvimrc file, with the following line to set the font:
set guifont=Bitstream_Vera_Sans_Mono:h11:cANSI
However, it doesn’t work. There are two strange things:
-
The other settings such as line number, color scheme works right, but font setting doesn’t work. Instead, I need to set them in the tool bar every time to change the font: “Edit->Select Font”.
-
Every time I select “Edit -> Startup Settings”, it opens the
~/.vimrcfile instead of the~/.gvimrcfile.
Your
guifontis valid only on Windows. In GTK GVim, you want:Also, you can use
set guifont=*to bring up a system dialog to choose a font, and then look at the contents of the setting withset guifont?.GVim loads
.vimrcand then.gvimrc, so you can separate settings that apply only to GUI version.