We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
いますぐほしい!というわけではないのですが忘れないうちに Issues に投げておきます。 以下のように g:operator#surround#blocks に正規表現を設定できれば便利そうだと思いました。
g:operator#surround#blocks
let g:operator#surround#blocks = { \ "-" : [ \ { 'block' : ['\w*(', ')'], 'motionwise' : ['char', 'line', 'block'], 'keys' : ['(', ')'] }, \ ] \}
<Plug>(operator-surround-delete) で func(hoge) の func() のみ削除するようなイメージです。 textobj-xbrackets.vim と組み合わせて使用することを考えています。 <Plug>(operator-surround-append) や <Plug>(operator-surround-replace) で利用する場合は func( や hoge( みたいに \w*( にマッチするワードを入力したら func({textobj}) や hoge({textobj}) みたいな感じになるとかですかねぇ。
<Plug>(operator-surround-delete)
func(hoge)
func()
<Plug>(operator-surround-append)
<Plug>(operator-surround-replace)
func(
hoge(
\w*(
func({textobj})
hoge({textobj})
The text was updated successfully, but these errors were encountered:
#6 と合わせて自作する事にしたのでこの要望は取り下げます。
Sorry, something went wrong.
No branches or pull requests
いますぐほしい!というわけではないのですが忘れないうちに Issues に投げておきます。
以下のように
g:operator#surround#blocks
に正規表現を設定できれば便利そうだと思いました。<Plug>(operator-surround-delete)
でfunc(hoge)
のfunc()
のみ削除するようなイメージです。textobj-xbrackets.vim と組み合わせて使用することを考えています。
<Plug>(operator-surround-append)
や<Plug>(operator-surround-replace)
で利用する場合はfunc(
やhoge(
みたいに\w*(
にマッチするワードを入力したらfunc({textobj})
やhoge({textobj})
みたいな感じになるとかですかねぇ。The text was updated successfully, but these errors were encountered: