1
1
Edit: I moved the original question to 'The docked gVim in Windows 7 jumps upon tab switch'
After struggling with my .vimrc
, I am resorting to setting the font from windows registry instead, because without the guifont
in .vimrc, everything works fine. The only registry mentioned I found was,
HKLM\Software\Microsoft\WindowsNT\CurrentVersion\Console\TrueTypeFont
This is for MS command line, but it was not what I was looking for. Currently gVim is set to Fixedsys
by default. The search though the registry for value fixedsys
returned no result. My gut feeling is that one can change it through the registry setting. Is there such registry value?
This may not be exactly what you want, but you might consider using standard vim (non-gui) in Windows. Using more high quality console replacement such as console 2 will give you the usual VIM experience, and you should be able to use any font you like.
– Fopedush – 2013-04-16T21:40:41.390Could you please clarify the question? More specifics on what happens versus what you expect, what sequence of commands you are using to reload the file, which settings are in
vimrc
versusgvimrc
, stuff like that. If you are not already putting your gui initialization in a separategvimrc
, try that first. – Bradd Szonye – 2013-04-16T22:33:38.117@Fopedush I already use non-gui vim through
mintty
, but the advantage of gVim is+clientserver
option. Also if you usevimperator
with firefox, you can also edit text fields easily withctrl-i
shortcut. This is not possible withvim
. – Forethinker – 2013-04-17T00:54:32.267@BraddSzonye I clarified the question. I do not think it is the conflict with the .vimrc (mine is quite big) and I did test it thoroughly. The auto source of .vimrc and
guifont
is all it takes to trigger the behavior. – Forethinker – 2013-04-17T01:09:01.100Thanks. A good next step would be to create a minimal
vimrc
that reproduces the problem. Does the window become undocked if you use avimrc
that contains nothing but aguifont
setting? – Bradd Szonye – 2013-04-17T01:15:18.760Also, you might have better luck asking "how to fix this?" rather than "how to set this in the registry?" in case there's a better solution, or if the problem also happens to people on non-Windows version of vim. – Bradd Szonye – 2013-04-17T01:17:51.267