mattn / emmet-vim

emmet for vim: http://emmet.io/
http://mattn.github.io/emmet-vim
MIT License
6.39k stars 411 forks source link

How can call lorem with Japanese character? #546

Open hwypengsir opened 1 year ago

hwypengsir commented 1 year ago

As we know that "lorem*20" can expand into a 20-characters string.

ls emmet-vim-master/autoload/emmet/lorem
en.vim  ja.vim

"ja.vim" can generate lorem text in Japanese then?How can?

mattn commented 1 year ago
let g:user_emmet_settings = {
\  'variables': {'lang': 'ja'},
\  'html': {
\    'default_attributes': {
\      'option': {'value': v:null},
\      'textarea': {'id': v:null, 'name': v:null, 'cols': 10, 'rows': 10},
\    },
\    'custom_expands' : {
\      '^\%(lorem\|lipsum\)\(\d*\)$' : function('emmet#lorem#ja#expand'),
\    },
...

And then expand with lorem5

hwypengsir commented 1 year ago

I add it in my .vimrc,the lorem5 still call English characters when editing "test.hmtl". How can make lorem:ja5 expand with Japanese,lorem:en5expand with Engllish?