Skip to content

<Plug>(operator-surround-append) 時に textobj を入力する前に括弧を指定したい #2

@osyo-manga

Description

@osyo-manga

lingr で言っていたやつですが、こちらにも要望を出しておきます。
現在、<Plug>(operator-surround-append)

  • operator → textobj →任意の括弧の入力

という順番で処理されるのですが、これを

  • operator →任意の括弧の入力→textobj

という風に textobj の前に括弧の入力を行いたいです。
これは例えば次のように利用することを想定しています。

" <Plug>(operator-surround-append-before) は先に括弧の入力を受け付けるマッピング
" <Plug>(operator-surround-append){textobj}( と同等
" e.g. s(iw は単語の範囲を () で囲む
map s( <Plug>(operator-surround-append-before)(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions