Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think it is practical when highlighting text and then pressing " once puts quotes and the start and the end of the highlighted region.

But I agree that in normal input it is often annoying.



I hate that even more, especially since Visual Studio introducted it. I had the habit of selecting some text, and then typing to replace it. Now when my replacement starts with a parenthesis or quote, the text just gets surrounded instead!

Maybe this is just an XKCD moment https://xkcd.com/1172/ ...


I think for the feature of wrapping, it is useful enough + just typing a->backspace->" is easy enough that I think it's a net win


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: