2

I have an unusual problem with my gVim installation - approximately half the time that I turn on my computer, gVim automatically replaces character sequences such as 'a and "o with their corresponding digraph characters. The other half of the time, it doesn't. I do not want this feature as it makes typing strings and other sequences very frustrating. But I can find no way to disable it.

This does not appear to be the default digraph options, since those use either backspace or CTRL-K to do anything. What could this be? The only package I have in my vimfiles folder is pyflakes. I have tried setting the keymap to the default and checking that I don't have the EasyAccents plugin installed somehow. Thanks!

tgbrooks
  • 241
  • 1
  • 10
  • Try `gvim -u NONE`. It will skip vimrc and plugins. – kev Jul 06 '12 at 16:05
  • That stops it from happening! Obviously I'd rather not use this permanently since my plugins and vimrc are rather helpful. Is my vimrc suspect then? Edit: actually, just reruning gvim fixes it (temporarily at least), so this doesn't tell me much. – tgbrooks Jul 06 '12 at 16:19
  • Try `gvim -u NORC`. It will only skip vimrc. – kev Jul 06 '12 at 16:43
  • Try `gvim --noplugin`. It will only skip plugins. – kev Jul 06 '12 at 16:44
  • 1
    Since it's now working with just plain `gvim`, that it works with both of those commands doesn't mean much. I think I'm getting hit by the problem where this only happens some of the time and I might have to perform lots of rebooting to thoroughly test this. Regardless, thanks, these commands are good to know. – tgbrooks Jul 06 '12 at 18:13
  • I just came back from having my computer in sleep mode and now my open gVim has reverted to the bad behavior. Before sleeping, it was not having this problem. New gvims do not have this problem, still. – tgbrooks Jul 06 '12 at 19:13
  • Well, I just observed this behavior in Chrome for the first time outside of vim. So I'm calling this closed and that vim is not the problem. (Though I have installed Vrome which provides vim-like behavior for Chrome, I doubt a vim problem would emerge in Vrome.) – tgbrooks Jul 10 '12 at 17:56

1 Answers1

0

Check, that no keymap is defined. Check the output of :verbose set keymap? It sounds to me, like some plugin is setting the accents keymap and therefore replacing e.g. 'a by á

Otherwise if that doesn't help, use paste mode, which basically disables all postprocessing by Vim when entering characters. The pastetoggle setting is useful for this.

In any case, check the faq Question 36.12 for how to debug problems with your .vimrc or plugins.

Christian Brabandt
  • 8,038
  • 1
  • 28
  • 32