Sunday, December 6, 2015

Re: test wrapping for coders

Hi

> Is there a quick way to wrap word with a pair of the following '',
> "", (), {}, [] ? When I'm coding and my cursor is on a word it would
> be nice to be able to quickly press a key or two and the keyboard
> and get that word wrapped on a set of the above. Thanks.


lh-brackets combines surrounding and pair-insertion. Surrounding with a pair of bracket-like characters is meant to be ergonomic. You want to surround with '()'? Just hit '(' -- defaults can be overridden, extended, ...
https://github.com/LucHermitte/lh-brackets

surround plugin, also provides a surrounding feature. This time the keybindings is more in the line of vim way of doing things regarding operator-pending mappings: ysiw) (if I'm not mistaken)
https://github.com/tpope/vim-surround

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment