"====================================================================== " " emmet.vim - " " Created by skywind on 2023/09/26 " Last Modified: 2023/09/26 14:43:47 " "====================================================================== let g:user_emmet_install_global = 0 " let g:user_emmet_mode='n' "only enable normal mode functions. " let g:user_emmet_mode='inv' "enable all functions, which is equal to " let g:user_emmet_mode='a' "enable all function in all mode. let g:user_emmet_mode = 'a' let g:user_emmet_leader_key='' "---------------------------------------------------------------------- " install "---------------------------------------------------------------------- function! s:install() if exists(':EmmetInstall') == 2 EmmetInstall endif endfunc "---------------------------------------------------------------------- " augroup "---------------------------------------------------------------------- augroup MyEmmetEvents au! autocmd FileType html,css call s:install() augroup END "---------------------------------------------------------------------- " settings "---------------------------------------------------------------------- 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}, \ }, \ 'snippets': { \ 'html:5': "\n" \ ."\n" \ ."\n" \ ."\t\n" \ ."\t\n" \ ."\t\n" \ ."\n" \ ."\n\t${child}|\n\n" \ ."", \ }, \ }, \ }