Loading ...
Sorry, an error occurred while loading the content.

134659Re: mapleader to tilde "~"

Expand Messages
  • Henrique Camargo
    Nov 22, 2012
    • 0 Attachment
      On Thu, Nov 22, 2012 at 4:27 PM, Ivan S. Freitas
      <ivansichfreitas@...> wrote:
      > On Thu, Nov 22, 2012 at 2:20 PM, Henrique Camargo
      > <henrique@...> 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.

      Thanks, that's exactly what is happening.

      If I change the keyboard layout from "Portuguese (Brazil)" to
      "Portuguese (Brazil, eliminate dead keys)" vim starts to behave as
      expected (since now the system is not waiting for the next character
      and sends the tilde immediately to vim).

      > 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.

      I'll try to find a solution to only modify the key when running vim. I
      can then map ~a to ã (as well as the others especial characters)
      manually using inoremap. But, for now, I'll find another leader key.

      Thanks,

      --
      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
    • Show all 4 messages in this topic