Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions autoload/emmet.vim
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ function! emmet#toString(...) abort
else
let type = &filetype
endif
if len(type) ==# 0 | let type = 'html' | endif
if type ==# '' | let type = 'html' | endif
if a:0 > 2
let inline = a:3
else
Expand Down Expand Up @@ -430,7 +430,7 @@ function! emmet#getFileType(...) abort
endfor
endif

return len(type) == 0 ? 'html' : type
return type == '' ? 'html' : type
endfunction

function! emmet#getDollarExprs(expand) abort
Expand Down
6 changes: 3 additions & 3 deletions plugin/emmet.vim
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
" +-------------------------------------
" | html:5_
" +-------------------------------------
" "_" is a cursor position. and type "<c-y>," (Ctrl+y and Comma)
" "_" is a cursor position. and type "<c-z>," (Ctrl+y and Comma)
" NOTE: Don't worry about key map. you can change it easily.
" +-------------------------------------
" | <!DOCTYPE HTML>
Expand All @@ -34,7 +34,7 @@
" +-------------------------------------
" | div#foo$*2>div.bar
" +-------------------------------------
" And type "<c-y>,"
" And type "<c-z>,"
" +-------------------------------------
" |<div id="foo1">
" | <div class="bar">_</div>
Expand Down Expand Up @@ -92,7 +92,7 @@ if !exists('g:emmet_curl_command')
endif

if !exists('g:user_emmet_leader_key')
let g:user_emmet_leader_key = '<c-y>'
let g:user_emmet_leader_key = '<c-z>'
endif

function! s:install_plugin(mode, buffer)
Expand Down