merlin
merlin copied to clipboard
MerlinRename binding messes with search register in vim
here is the mapping i am using:
au FileType ocaml nmap <buffer> <localleader>r <plug>(MerlinRename)
i see the following behavior: i first search for an identifier name fmt with /fmt . after i find one, i want to rename it with MerlinRename.
typing :MerlinRename ff correctly renames the identifier fmt to ff and has no unwanted side effects.
however, when i instead invoke the binding \r, the identifier is renamed but also, the search register now contains the value 2, as evidenced by pressing n for the next match, which finds the next occurrence of 2 in the file.