Thursday, April 28, 2016

Re:How to add the Chinese to the autocomplete dic ?

有点复杂,可以自己写一个词典,但是Vim默认是英文的分词,所以只能补全以英文分词方式能识别出来的中文词句



发自我的小米手机
在 李哲 <imlegendlzz@gmail.com>,2016年4月19日 14:48写道:

I make a MarkDown dic for my MarkDown snippet in the MarkDown file. The English word works fine. But if I add some Chinese vocabulary in the markdown.txt, it doesn't work.
How to fix this question ?

I haven't find the answer on the Google

vimrc:
function AddMarkDownDict()
    if g:isWIN
        set dict+=$VIM/vimfiles/dict/markdown.txt
    else
        set dict+=~/.vim/dict/markdown.txt
    endif
    set complete+=k
endfunction

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment