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

How can call lorem with Japanese character?

Open hwypengsir opened this issue 2 years ago • 2 comments

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?

hwypengsir avatar Nov 20 '22 06:11 hwypengsir

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

mattn avatar Nov 21 '22 00:11 mattn

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?

hwypengsir avatar Nov 22 '22 04:11 hwypengsir