Vim is unable to map non-ascii keys (æ, ø, å) in my utf-8-encoded .vimrc.
I am using Scandinavian letters (æ, ø and å) in mappings and as leader. When changing 'encoding' from latin1 to utf-8 and writing/sourcing my .vimrc (as utf-8), the mappings break. I asked on StackOverflow for help (link to question below), and the answer was that this seems to be platform-specific. Therefore, I assume this is a bug. If this indeed is a bug, I'll be happy to assist in any way I can, whether it is providing more information, testing or anything else. ## Further details: StackOverflow question with a few more details: http://stackoverflow.com/questions/18421131/how-can-i-bind-non-ascii-keys-with-a-utf-8-encoded-vimrc ### Specific steps to reproduce: Using this .vimrc: https://github.com/lstor/vimfiles-lstor/blob/7bbe1fe46a4ee2e8b5b671b50b54cbc695149250/vimrc#L98,L99 0. The above .vimrc works. Pressing ø then h will call :nohls. Pressing :å will generate :[ on the command line. 1. Add 'set encoding=utf-8' between line 98 and line 99. (Although the line numbers shouldn't matter.) 2. :write the .vimrc, converting 'ø' from latin1 to utf-8. 3. :source .vimrc 4. Pressing ø rings the error bell. ### Version and setup info I am using gVim 7.4 32-bit on Win7 64-bit. I have not been able to test any other platforms. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
