mirror of
https://github.com/mattn/emmet-vim.git
synced 2026-01-09 19:02:23 +08:00
s/ExpandWord/expandWord/g
s/CompleteTag/completeTag/g Ready for next/prev item
This commit is contained in:
@@ -644,6 +644,15 @@ function! emmet#lang#html#balanceTag(flag) range
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! emmet#lang#html#moveNextPrevItem(flag)
|
||||
silent! exe "normal \<esc>"
|
||||
let mx = '\%([0-9a-zA-Z-:]\+\%(="[^"]*"\|=''[^'']*''\|[^ ''">\]]*\)\{0,1}\)'
|
||||
let pos = searchpos('\s'.mx.'\zs', '')
|
||||
if pos != [0,0]
|
||||
call feedkeys('v?\s\zs'.mx."\<cr>", '')
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! emmet#lang#html#moveNextPrev(flag)
|
||||
let pos = search('\%(</\w\+\)\@<!\zs><\/\|\(""\)\|^\(\s*\)$', a:flag ? 'Wpb' : 'Wp')
|
||||
if pos == 3
|
||||
|
||||
Reference in New Issue
Block a user