@@ -613,16 +613,29 @@ configured separately. The default highlight group used is `Visual`:
613
613
--------------------------------------------------------------------------------
614
614
3.6. Cursor *nvim-surround.config.move_cursor*
615
615
616
- By default, when a surround action is performed, the cursor moves to the
617
- beginning of the action.
616
+ By default (or when `move_cursor = "begin"`), when a surround action is
617
+ performed, the cursor moves to the beginning of the action.
618
618
619
619
Old text Command New text ~
620
620
some_t*ext ysiw[ *[ some_text ]
621
621
another { sample *} ds{ another *sample
622
622
(hello* world) csbB *{hello world}
623
623
624
- This behavior can be disabled by setting `move_cursor = false` in one of the
625
- setup functions.
624
+ If `move_cursor` is set to `" sticky" ` , the cursor will "stick" to the current
625
+ character, and move with the text as the buffer changes.
626
+
627
+ Old text Command New text ~
628
+ some_t*ext ysiw[ [ some_t*ext ]
629
+ another { sample *} ds{ another sampl*e
630
+ (hello* world) csbffoo<CR> foo(hello* world)
631
+
632
+ If `move_cursor` is set to `false` , the cursor won't move at all, regardless
633
+ of how the buffer changes.
634
+
635
+ Old text Command New text ~
636
+ some_t*ext ysiw[ [ some_*text ]
637
+ another { *sample } ds{ another sa*mple
638
+ (hello* world) csbffoo<CR> foo(he*llo world)
626
639
627
640
--------------------------------------------------------------------------------
628
641
3.7. Indentation *nvim-surround.config.indent_lines*
0 commit comments