On 11/06/09 22:07, Nicolas Aggelidis wrote:
>
> hi vimers!
>
> i recently "discovered" the following problem:
>
> when all i use is English language then no problem switching between
> normal and insert mode...
> but  when i am writing in Greek i loose the ability for normal mode
> editing without switching back to English....
>
> for example: i am writing Greek and i want to correct the next
> word...i have to press escape then change language(to english) press
> cw then press i and then change language again(this time to greek)...
>
> Is it possible to bypass the language changes? i am wondering fellows
> that don't use a latin keyboard how they solve this problem...
>
>
> thanks for your time!
> nicolas

If you change your system locale while running Vim, then you're courting 
disaster.

Method I.

Start Vim in English locale. Use the 'keymap' option to define a Greek 
keyboard for use only in Insert and Search mode, and for the operands of 
such Normal-mode commands as r f etc. Use the Ctrl-^ key and/or the 
'iminsert' option to switch between Greek and English while in Insert mode.

Method II.

Start Vim in Greek locale. Use the 'langmap' option to define English 
equivalents of Greek letters, for use in Normal and Command-line modes. 
Beware that if you're using a patchlevel earlier than 7.2.109, this may 
not work for you. I'm not sure whether it's possible to type English in 
Insert mode after starting this way, but you may experiment with Ctrl-^ 
and/or 'imi' as above.


In neither case should you change your OS locale in the middle of a Vim 
session: Vim is not aware of such changes, and will probably respond 
otherwise than what you expect.


Best regards,
Tony.
-- 
Never let your schooling interfere with your education.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to