On 20/01/10 09:18, Sergey Vakulenko wrote:
Hello Everyone

How to print è character in gvim. When i do that in french layout,
typing key 7, vim past some phrases ( register buffer? ) to active
window.
It looks like no maping for è character.

How to overcome this difficulty?

Thanks

Sergey





- My fr_BE keyboard has è as 7 without Shift, gvim displays it with no difficulty. - You should not change the system locale while gvim is running: the program won't know about such changes and will probably misinterpret what you type from then on - Even if your keyboard hasn't got it, there are several ways to type the è character in gvim, *provided* that your current 'encoding' and the 'fileencoding' of the current file both support it.
- To know what these settings are:
        :verbose set encoding?
        :verbose setlocal fileencoding?
Any 'Western' or 'Unicode' encoding supports that letter. Examples (where case is irrelevant, i.e. UTF-8 and utf-8 are the same charset):
        Latin1 aka iso-8859-1
        Latin9 aka iso-8859-15
        Windows-1252 aka cp1252
        UTF-8
        UTF-16
        UTF-16le
        etc.
- Examples of how to type the è character (disregard the spaces, I'm adding them here for legibility only):
        (by digraphs) Ctrl-K e !
        (by character code) any one of
                Ctrl-V 232
                Ctrl-V o 350
                Ctrl-V x E8
                Ctrl-V u 00E8
(by keymap) using the Accents keymap: `e (with 'iminsert' set to 1 and 'keymap' set to "accents") All of the above are in Insert mode, and if your Ctrl-V was remapped to the Paste operation, use Ctrl-Q instead.

See:
        :help digraphs
        :help i_CTRL-K
        :help digraphs-default
        :help i_CTRL-V_digit
        :help mbyte-keymap
        :help 'iminsert'
        :help i_CTRL-^
        :help c_CTRL-^
Note also that if your keyboard hasn't got the CTRL-^ control character, or if you don't know how to produce it, you can always use a mapping, e.g.
        :map! <F8>  <C-^>
        :map  <F8>  :let &imi = !&imi<CR>
(use both, and type the <> codes as less-than, something, greater-than)


Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
244. You use more than 20 passwords.
-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to