1

I have this mapping in my vimrc:

nnoremap <F3> :%s/ä/\\"{a}/g<CR> :%s/ö/\\"{o}/g<CR> :%s/ü/\\"{u}/g<CR>  :%s/ß/\ss{}/g<CR>

after executing it, an 'R' is inserted above the current line, which of course doesn't make sense at all.

the same applies to

nnoremap <F3> :%s/ä/\\"{a}/g<CR> 

How can I debug this? Is this mapping even possible?

EDIT my vim config

5
  • 1
    I cannot reproduce this. Can you try with vim -Nu NONE? – muru Mar 13 '16 at 18:53
  • @muru it works when i start vim -Nu NONE and manually define the mapping. – toogley Mar 13 '16 at 19:08
  • Try disabling your plugins, etc. – muru Mar 13 '16 at 19:25
  • 2
    You can try following the steps outline here to isolate the problem ;-) – Martin Tournoij Mar 13 '16 at 19:42
  • check your encoding option. – Christian Brabandt Oct 22 '19 at 12:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.