âš This is the beta version.
âš (2023/12/14) Rename plugin name from vim-tabtoslash
to vim-skipslash
You can <TAB>
to move to the next block when the command line is :s/{pattern}/{string}/
or :g/{pattern}/
,
and automatically skips '/'.
call dein#add('utubo/vim-skipslash')
(Optional)
nnoremap gs :<C-u>s///cg<Left><Left><Left><Left>
nnoremap gS :<C-u>%s/<C-r>=escape(expand('<cword>'), '^$.*?/\[]')<CR>//cg<Left><Left><Left>
vnoremap gs :s///cg<Left><Left><Left><Left>
let g:skipslash_autocomplete = 1
|
is the cursor.
:s/p|at/str/
-> :s/pat/|str/
:s/pat/s|tr/
-> :s/pat|/str/
(Option)
let g:skipslash_back_to_head = 1
:s/pat/s|tr/
-> :s/|pat/str/
:s/pat|/str/
-> :s/pat/|str/
( When "/" is escaped with "\" ...)
:s/pat\|/str/
-> :s/pat\/|/str/
let g:skipslash_autocomplete = 1
:s/
->:s///g
:g/
->:g//
:v/
->:v//
:g!/
->:g!//
/
,#
,-
,:
,-
,@
,^
,_
,~
This plugin works on e.g.
:s#foo#bar#
autoload/skipslash.vim
is minified from autoload/skipslash.src.vim
with vim-minviml.