On Thu, Nov 22, 2012 at 2:20 PM, Henrique Camargo <[email protected]> wrote: > Hi, I'm trying to map my leader key to tilde "~" since it lays in a > convenient position in a ABNT2 keyboard layout [1] and I don't use the > toggle case functionality too often.
I don't think you will be able to do that just using vim, since the tilde is a dead key on the abnt2 layout. > let mapleader = "~" Try (works for me): map ~ <Nop> let mapleader = "~" (Without the Nop mapping it always uses the tilde to toggle between lower and upper case) The problem (tilde being a dead key) is that you will have to press it two times in order to have the effect of just one "leader" character. Assuming a Linux machine, you may be able to turn that to only one keystroke by using xmodmap, but AFAIK there is no direct way to make it affect only vim, i.e., it is changed globally. Also, if you make it a non-dead key, you may be unable to enter accented characters by usual means. -- Ivan Sichmann Freitas GNU/Linux user #509059 SDF Arpa Member http://isf.sdf.org/about.html -- You received this message from the "vim_use" 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
