dahu / vim-asciidoc

Enhanced editing support for Asciidoc files in Vim
42 stars 11 forks source link

Format not working with utf-8 text #5

Closed valir closed 9 years ago

valir commented 9 years ago

Hello,

Please consider this piece of text: Și cum spuneam, stăteam toată ziua în pătul și citeam. Luam cărți de la verișorii mei. Avea destule așa că aveam ce citi pe tot timpul vacanței de vară, care ținea 3 luni pe atunci.

I place the cursor on the starting Ș and press Q. Instead of formatting the text, vim-asciidoc display this error:

vim-asciidoc: unknown block on 77: don't know how to format: Și cum spuneam, st...

Any ideau about this error?

valir commented 9 years ago

Thanks for the quick reaction!

I just updated the plug-in, then retried the same paragraph and now I get this - notice I have more lines of errors.

vim-asciidoc: unknown block on 77: don't know how to format: Și cum spuneam, st...
Error detected while processing function 143_Q: line 25: E354: Invalid register name: '*' Press ENTER or type command to continue

dahu commented 9 years ago

Ah... your vim doesn't have xterm clipboard support. I will fix it, but not right now.

For now, you can comment out lines: 159 and 182 in ftplugin/asciidoc.vim

On 16 March 2015 at 06:43, Valentin Rusu notifications@github.com wrote:

Thanks for the quick reaction!

I just updated the plug-in, then retried the same paragraph and now I get this - notice I have more lines of errors.

vim-asciidoc: unknown block on 77: don't know how to format: Și cum spuneam, st...

Error detected while processing function 143_Q: line 25: E354: Invalid register name: '*' Press ENTER or type command to continue

— Reply to this email directly or view it on GitHub https://github.com/dahu/vim-asciidoc/issues/5#issuecomment-81275496.

valir commented 9 years ago

It now works. I double checked the git update - seems that NeoBundleUpdate command did not update correctly. I manually updated the plugin. I also installed gvim, which also provides vim with xterm support (I'm using Arch).

Thanks,