> As I write in several languages, I have several keyboard layouts.
>
> The strange problem I have is that when I open macvim, the system
> keyboard switches to the spanish keyboard (even though it is not my
> default). Its quite annoying, because each time I have to change the
> keyboard layout again.
>
> Does anybodody have any idea about what could cause this strange
> behavior?
hm, did you upgrade to Leopard from Tiger? If I remember correctly,
Tiger had an option to remember keyboard layouts per-application.
Perhaps you set that up in Tiger, and then did upgrade, and the pref
is still there…
I don't know where this preference is stored though (what's the output
of `cat ~/.CFUserTextEncoding`?). Perhaps it helps if you remove the
spanish layout in System Preferences->International, launch MacVim,
quit MacVim, and then add spanish again?
Nico
Have you tried adding the line
set imd
to your ~/.gvimrc file?
Björn
> Yes I upgraded from Tiger to Leopard, and your idea looks good.
>
> But I tryed to remove the keyboard layout and I couldn't, it was gray.
> Look at this screenshot:
> http://farm4.static.flickr.com/3163/2643377742_60c1affde4_o.png
Try checking activating a different "Roman" keyboard that is not
international (e.g. "Canadian English"). Can you now disable Spanish?
If so, start MacVim, quit it, re-enable spanish, disable Canadian and
see if that helps.
>> I don't know where this preference is stored though (what's the
>> output
>> of `cat ~/.CFUserTextEncoding`?). Perhaps it helps if you remove the
>> spanish layout in System Preferences->International, launch MacVim,
>> quit MacVim, and then add spanish again?
>
> cat ~/.CFUserTextEncoding
> 0:0
>
> What does this mean?
I'm not sure, but it's somehow related to language and text encoding.
"0:0" means "default", so that's ok.
Nico
Ask Apple. Probably because they want that you can always type stuff
into a terminal.
>> If so, start MacVim, quit it, re-enable spanish, disable Canadian and
>> see if that helps.
>
> Unfortunatelly, this did nothing. When I re-enabled the Spanish
> keyboard I had the same problem again.
>
> But I didn't logout between the changes. Should I?
It's worth a try. You could also try removing the file ~/Library/
Preferences/org.vim.MacVim.plist and then restarting MacVim (you'll
the list of recent files and MacVim will ask you again if it should
check for updates. That's normal when you remove the prefs file). Does
that help? If this works, I'd be interested in seeing the plist file.
Can you send it to the list? (only if it helps, though).
Nico
On 07.07.2008, at 22:24, pqs wrote:
> On Jul 6, 9:52 pm, "björn" <bjorn.winck...@gmail.com> wrote:
>> Have you tried adding the line
>>
>> set imd
>>
>> to your ~/.gvimrc file?
>
> I don't have a .gvimrc file. I have a .vimrc. Is that equivalent?
.gvimrc is the same as a .vimrc, but for GUI mode. .vimrc is read if
you start vim in terminal (`vim`) or in gui mode (`mvim` or `gvim` on
linux), .gvimrc is read only in gui mode (in gui mode, .vimrc is read
before .gvimrc).
Nic
First of all: it sounds to me like you are using the old Carbon Vim
(the one on macvim.org) so first of all go to code.google.com/p/macvim
and download MacVim.app instead.
Assuming you still have the same problems with MacVim.app, can you
please tell me _exactly_ what language settings you have. Open System
Preferences -> International
1. What keyboard layouts are active under the "Input Menu" tab?
2. Which language is at the top of the list under the "Language" tab?
Finally, what's the content of the file ~/.CFUserTextEncoding (open
Terminal and type cat .CFUserTextEncoding)?
pqs, if you are still reading this thread, can you also tell me the
answers to 1 and 2?
Thanks,
Björn