bhagwan,

Have you tried mini.surround module from the most wonderful mini.nvim?

my config for it makes it behaves with the exact same keybinds as tpope’s vim surround with extra goodies (highlighting surrounds and lua bracket strings).

P.S. I highly recommend checking out the modules in mini.nvim, the maintainer is a great coder and very nice and all hoa modules are top quality and far from “mini” in functionality.

mawkler,

I would recommend just learning the default surround behavior since it’s more versatile. For example surround -> text-object -> character, siw) (surround word in parentheses) can be repeated with . (dot).

bennyp,
bennyp avatar

" already means something though (leader to pick a register)

Try the which-key plugin, and/or make up silly stories for your bindings e.g. "you surround a word "

phario,

I have also struggled to remember how the heck to use vim-surround. It doesn’t help that the documentation for pope’s plugins are always sparse and aimed towards experienced people.

ck_,

There is a alternative called vim-sandwich which has better documentation and better defaults (IMO).

  • All
  • Subscribed
  • Moderated
  • Favorites
  • neovim@sopuli.xyz
  • slotface
  • kavyap
  • thenastyranch
  • everett
  • tacticalgear
  • rosin
  • Durango
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • InstantRegret
  • Youngstown
  • khanakhh
  • ethstaker
  • JUstTest
  • ngwrru68w68
  • cisconetworking
  • modclub
  • tester
  • osvaldo12
  • cubers
  • GTA5RPClips
  • normalnudes
  • Leos
  • provamag3
  • anitta
  • megavids
  • lostlight
  • All magazines