vim-esperanto icon indicating copy to clipboard operation
vim-esperanto copied to clipboard

Command mode mapping fails

Open drandre2014 opened this issue 7 years ago • 1 comments

When I try to search for, say, cxu, it maps fine and I can do searches, but when I open the editor again, and that search is not found, I get:

Error detected while processing function <SNR>51_build_transliteration_mapping: line 3: E486: Pattern not found: Ĉu line 4: E492: Not an editor command: Child(String) line 3: E486: Pattern not found: Ĉu line 4: E492: Not an editor command: Child(String) line 3: E486: Pattern not found: Ĉu line 4: E492: Not an editor command: Child(String)

And when it is in the document, I get:

Error detected while processing function <SNR>51_build_transliteration_mapping: line 3: E486: Pattern not found: .name line 4: E492: Not an editor command: Child(String) line 3: E486: Pattern not found: .name line 4: E492: Not an editor command: Child(String) line 3: E486: Pattern not found: .name line 4: E492: Not an editor command: Child(String)

I am using Plugged and an EoMap of "x"

drandre2014 avatar Dec 30 '17 21:12 drandre2014

I ran into the similar issue right after typing :Eo. I comment out lines 72 and 73 of autoload/esperanto.vim and it seems the problem was solved. So the file is like

function! s:build_transliteration_mapping(xchar)                         
     " Mapping for x- and -h transliteration systems.                     
    let chars_mapping = {"h":"ĥ", "j":"ĵ", "u":"ŭ", "c":"ĉ", "s":"ŝ", "g":"ĝ"}
     " /// .name                                                          
     " Child(String)             

Not an expert in Vimscript so I am not sure about what the two lines mean in the creator's mind.

zhaiyusci avatar Jul 13 '19 16:07 zhaiyusci