Awesome
vim-insert-point
cursor move on insert mode!
example
.vimrc
imap <Tab> <Plug>(insert_point_next_point)
imap <S-Tab> <Plug>(insert_point_prev_point)
smap <Tab> <Plug>(inserst_point_next_point_select)
smap <S-Tab> <Plug>(inserst_point_prev_point_select)
case1: default settings.
your cursor on <strong>|</strong>. (language is javascript)
var func = function (arg1, arg2|) {
return { key1: 'value1', key2: 'value2' }
}
you type <strong><Tab></strong>. move cursor at the next point.
var func = function (arg1, arg2)| {
return { key1: 'value1', key2: 'value2' }
}
you type <strong><Tab></strong> again.
var func = function (arg1, arg2) {|
return { key1: 'value1', key2: 'value2' }
}
you type <strong><Tab></strong> again. move cursor and selection <strong>value1</strong>.
var func = function (arg1, arg2) {
return { key1: '|value1', key2: 'value2' }
}
case2: html settings.
your cursor on <strong>|</strong>. (language is html)
<d|iv id="id-value1">
<a class="class-value1" href="https://github.com/hrsh7th/vim-insert-point">
<span>text1</span>
</a>
</div>
you type <strong><Tab></strong>. move cursor and selection <strong>id</strong>.
<div |id="id-value1">
<a class="class-value1" href="https://github.com/hrsh7th/vim-insert-point">
<span>text1</span>
</a>
</div>
you type <strong><Tab></strong>. move cursor and selection <strong>id-value1</strong>.
<div id="|id-value1">
<a class="class-value1" href="https://github.com/hrsh7th/vim-insert-point">
<span>text1</span>
</a>
</div>
you type <strong><Tab></strong>.
<div id="id-value1">|
<a class="class-value1" href="https://github.com/hrsh7th/vim-insert-point">
<span>text1</span>
</a>
</div>
you type <strong><Tab></strong>. move cursor and selection <strong>class</strong>.
<div id="id-value1">
<a |class="class-value1" href="https://github.com/hrsh7th/vim-insert-point">
<span>text1</span>
</a>
</div>