Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can call lorem with Japanese character? #546

Open
hwypengsir opened this issue Nov 20, 2022 · 2 comments
Open

How can call lorem with Japanese character? #546

hwypengsir opened this issue Nov 20, 2022 · 2 comments

Comments

@hwypengsir
Copy link

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
Copy link
Owner

mattn commented Nov 21, 2022

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
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants