neovim icon indicating copy to clipboard operation
neovim copied to clipboard

basics: surround-nvim usage

Open practicalli-johnny opened this issue 7 months ago • 0 comments

Document the use of nvim-surround

  • Adding a delimiter pair to the buffer
  • Deleting a delimiter pair from the buffer
  • Changing a delimiter pair to a different pair

Help documentation for using nvim-surround

:help nvim-surround.usage.

Common pattern for surrounding existing text

-v to visual select

  • s to cut
  • type surrounding char
  • p to paste original characters

Add To:

  • https://practical.li/neovim/reference/modal-editing/tips-for-clojure/#simulated-structural-editing-with-surround

practicalli-johnny avatar Apr 07 '25 19:04 practicalli-johnny