How to add the Chinese to the autocomplete dic ?

25 views
Skip to first unread message

李哲

unread,
Apr 19, 2016, 2:48:43 AM4/19/16
to vim_use
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

redspid

unread,
Apr 28, 2016, 12:05:07 PM4/28/16
to imleg...@gmail.com, vim...@googlegroups.com
有点复杂,可以自己写一个词典,但是Vim默认是英文的分词,所以只能补全以英文分词方式能识别出来的中文词句



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

--
--
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+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

李哲

unread,
Apr 29, 2016, 12:01:26 AM4/29/16
to vim_use, imleg...@gmail.com
在 2016年4月29日星期五 UTC+8上午12:05:07,GNU-redspider写道:
谢谢 : )
Reply all
Reply to author
Forward
0 new messages