Vim Surround - KeynesYouDigIt/Knowledge GitHub Wiki

Change, delete, and add surrounding patterns

Commands

  • Change
    • cs<old surround><new surround>
  • Delete
    • ds<surround>
  • Add
    • ys<target><surround>
    • yss<surround> for whole line

Notes

  • Use {, (, [ for spaces
  • Use }, ), ] for no spaces
⚠️ **GitHub.com Fallback** ⚠️