vim-operator-surround icon indicating copy to clipboard operation
vim-operator-surround copied to clipboard

Vim operator mapping to enclose text objects with surrounds like paren, quote and so on.

Results 13 vim-operator-surround issues
Sort by recently updated
recently updated
newest added

According to the doc, `g:operator#surround#ignore_space` affects `(operator-surround-append)` and `(operator-surround-replace)`, not `(operator-surround-delete)`. Currently, `sda'` doesn't work with the example below when `g:operator#surround#ignore_space = 0` . (Assume that `map sd (operator-surround-delete)` and...

I just think it might be worth mentioning that it's possible (and in my case very handy) to use this in visual mode and even visual block mode. Example `.vimrc`:...

When cursor is on 'f', ```ruby puts 'foo ' ``` `(operator-surround-replace)a'"` will change above code to: ```ruby puts "foo" ``` Note that the line has one trailing space at the...

bug

こんにちは。素晴らしいプラグインをありがとうございます。 surroundを使うときにブロック以外の文字を足したい時があります。 vimスクリプトを書いていると処理の順と記述の順が逆なので特にそう思います。 (例)ファンクションAを呼んで、結果にファンクションBを呼びたい 1. A()を書く 2. A()をビジュアル選択 3. surroundで()を付与するときに、B(と書きたい このためにオプションを一つ足してみました。 `g:keeps_input_if_no_block` - 有効にすると、ブロックキー以外の文字を溜めこんで、ブロックキーが出現したときに溜めこんだ文字を先頭に付与します。 - プロンプトが`chars & block :`に変わります。 - デフォルトは無効にしています。`g:uses_input_if_no_block`を無視することになるので、既存の動きを変えないほうがいいかと思いました。 VACの [hoge() で囲みたい症候群 - vim 初心者の作業メモ](http://d.hatena.ne.jp/syngan/20140301/1393676442) を読んで、 同じようなことを思っている人がいるなら、オプションでできるようになれば便利かなと思った次第です。 ご検討よろしくお願いします。

How about plugin option to enclose mapped actions inside ``` old = getcurpos() ... setpos('.', old+(append ? len(newleftblock) : delete ? -len(oldleftblock) : replace ? len(new)-len(old) : 0)) ``` I...

[lingr で言っていたやつ](http://lingr.com/room/vim/archives/2014/02/17#message-18379161)ですが、こちらにも要望を出しておきます。 現在、`(operator-surround-append)` は - operator → textobj →任意の括弧の入力 という順番で処理されるのですが、これを - operator →任意の括弧の入力→textobj という風に textobj の前に括弧の入力を行いたいです。 これは例えば次のように利用することを想定しています。 ``` vim " (operator-surround-append-before) は先に括弧の入力を受け付けるマッピング " (operator-surround-append){textobj}( と同等 " e.g. s(iw は単語の範囲を ()...

when using (operator-surround-append) you can only surround things with two spaces not a single space

I would like to have a `\langle ... \rangle` surround for use in latex. Hence I have defined: ``` let g:operator#surround#blocks = { \ '-' : [ \ {'block': ['\langle',...

Let `.vimrc` contain ``` nnoremap (hvgu) ^vg_ nmap css (hvgu)(operator-surround-replace) ``` and let `test.vim` consist of the single line ``` (nmap csg) ``` Expected: hitting `cssB` gives ``` {nmap csg}...

For example, when using `targets.vim` (or user plug-ins providing a i/a$ text-object) with ``` let g:targets_quotes = '$d' ``` and using ``` let g:operator#surround#blocks =\ { \ '-' : [...