Hacker GitHub

← All repos

tpope/vim-surround

View on GitHub ↗ ★ 14,107 Vim Script

surround.vim: Delete/change/add parentheses/quotes/XML-tags/much more with ease

29 mentions on Hacker News by 27 people: 1 story, 28 comments · first 2010-07-04 · latest 2025-07-04

Mentions per year 29 mentions · busiest year 2011 (4)
20082026
  1. But there have been sensible bindings for doing this forever, e.g.: https://github.com/tpope/vim-surround There's no need to break normal editing behavior.
    comment by pxc · 2025-07-04 · in The Rise of Whatever
  2. …to add or change anything around the selection tpope has solved that with vim-surround[1]. [1]: https://github.com/tpope/vim-surround
  3. …and access editing plugins[2][3] that way. 1. https://github.com/vscode-neovim/vscode-neovim 2. https://github.com/tpope/vim-surround 3. https://github.com/andymass/vim-matchup
    comment by turboponyy · 2023-08-14 · in The complex simplicity of my static websites
  4. Vim can do this with the following plugin: https://github.com/tpope/vim-surround I exclusively use the visual mode commands though, because I find the normal-mode commands confusing.
  5. …I can barely hold nervous laughter at some hilariously complex refactoring I did. A few links: https://github.com/tpope/vim-surround https://github.com/vim-scripts/argtextobj.vim https://github.com/michaeljsmith/vim-indent-object…
    comment by lloeki · 2022-12-13 · in Ask HN: Is Vim still worth learning?
  6. Surround is a plugin which adds more text objects: https://github.com/tpope/vim-surround cs"': change surrounding quotes, e.g. "foo" -> 'foo' cs([: change surrounding brackets, e.g. (foo) -> [ foo ] ( cs]) would omit the spaces) ci":…
    comment by tomn · 2022-12-13 · in Ask HN: Is Vim still worth learning?
  7. I use vim-surround. https://github.com/tpope/vim-surround
    comment by ludsan · 2021-02-27 · in A Vim Guide for Advanced Users
  8. This is vim-surround by tpope[1]. It does way more than just basic brackets! [1]: https://github.com/tpope/vim-surround
  9. ysiwb yank-surround-in-word-brackets also does it. If you have https://github.com/tpope/vim-surround/ installed.
  10. https://github.com/tpope/vim-surround
  11. …have everything Vim does, but it does have Tim Pope's almighty surround plugin, out-of-the-box. https://github.com/tpope/vim-surround ys2w) will put brackets around the next 2 words. That is a beautiful thing.
    comment by rendall · 2020-11-12 · in I Still Use Vim
  12. …https://github.com/tpope/vim-sleuth https://github.com/tpope/vim-repeat https://github.com/tpope/vim-surround https://github.com/junegunn/fzf.vim (also see https://jesseleite.com/posts/2/its-dangerous-to-vim-alone-ta... ) Some sni
  13. …who wrote vim-fugitive. It is also available non the vim plugin for VSCode by turning on a setting. https://github.com/tpope/vim-surround
    comment by mplanchard · 2019-10-12 · in Relearning to Type
  14. …https://github.com/tpope/vim-commentary - vim-surround: Easily surround selected text with symbols: https://github.com/tpope/vim-surround - vim-unimpared: Adds bindings for some misc. commands, like enabling relative line numbers and…
    comment by aquova · 2018-06-30 · in Vim plugins I use
  15. Isn't this part of vim-surround? http://github.com/tpope/vim-surround
    comment by LyndsySimon · 2018-05-21 · in Ten Years of Vim
  16. And https://github.com/tpope/vim-surround
    comment by dmix · 2017-10-20 · in Vim after 15 Years
  17. …things that, once you've used it for a while, it's impossible to think of editing text without it: https://github.com/tpope/vim-surround
    comment by fiddlerwoaroof · 2017-03-16 · in Programs that have saved me 100+ hours
  18. …nmap s ysi nmap S ysa nmap s$ ys$ nmap sv gvs [0] https://github.com/easymotion/vim-easymotion [1] https://github.com/tpope/vim-surround
  19. package manager: https://github.com/VundleVim/Vundle.vim surround: https://github.com/tpope/vim-surround repeat: http://www.vim.org/scripts/script.php?script_id=2136 git: https://github.com/tpope/vim-fugitive (tim pope plugin) undo:…
  20. I like vim-surround[0] and vim-unimpaired[1]. [0]: https://github.com/tpope/vim-surround [1]: https://github.com/tpope/vim-unimpaired
    comment by thesteamboat · 2015-10-02 · in To Master Vim, Use It Like Language
  21. …and really read the docs and try to understand why it is what it is. Must have plugins are also https://github.com/tpope/vim-surround and https://github.com/tpope/vim-repeat
  22. …and argtextobj: cia and daa. Those are the two plugins that I really miss on a stock vim. [0] https://github.com/tpope/vim-surround.git [1] https://github.com/vim-scripts/argtextobj.vim
    comment by lloeki · 2012-06-21 · in Vim clutch
  23. …Pope, comes to mind if you do a lot of Git work and care about crafting really nice commits. [1]: https://github.com/tpope/vim-surround [2]: http://vimdoc.sourceforge.net/htmldoc/motion.html [3]: https://github.com/tpope/vim-fugitive
    comment by tyrmored · 2012-06-10 · in Vim: Buffers, Windows, and Tabs
  24. …plugins also worth checking out: Easymotion - https://github.com/Lokaltog/vim-easymotion Surround - https://github.com/tpope/vim-surround
  25. …, NerdTree: https://github.com/scrooloose/nerdtree , Surround: https://github.com/tpope/vim-surround , Snipmate: https://github.com/msanders/snipmate.vim (compulsory)
  26. …git submodules I might need while the former contains links to those I actually want active. [1] https://github.com/tpope/vim-surround
  27. I truly prefer to use git-subtree with pathogen. 1. add a repo: $ git remote add remote-vim-surround https://github.com/tpope/vim-surround.git 2. git-subtree: $ git subtree add --prefix=vim/bundle/vim-surround remote-vim-surround master 3.…
    comment by Adaptive · 2011-05-11 · in Sane Vim Plugin Management with Vundle
  28. …inside of matching pairs, just think how much you'll like manipulating the pairs themselves! http://github.com/tpope/vim-surround
    comment by rbxbx · 2010-07-04 · in Ask HN: Suggestions for mastering vim?