Fork me on GitHub
Yehonathan Sharvit12:09:13

how do you guys wrap a piece of text into double quotes with evil-cleverparens?


If it is a word and evil mode, you can use ysiw", which is provided by evil-surround.


Basically, ys is the beginning of a "phrase", iw is a "movement", and the " is the "wrapper".

Yehonathan Sharvit13:09:27

I was expecting evil-cleverparens to handle it, like it allows me to wrap an expression with ()


Is there a way to prevent midnight from closing active window buffers?


check standard-hooks


Sometimes I come back from the weekend and see that most of my window buffers are closed, so I have either my window configuration full of scratch buffers or some other buffer that wasn't old enough to close populating all three windows


@viebel I use SPC v to select a word and then use s to surround it with what ever I type next. You can also change a surrounding character using cs followed by the character you want to replace and then the new surrounding character.

❤️ 8
Yehonathan Sharvit21:09:18

Nice trick @jr0cket. The only issue is that if the region to surround contains double quotes, they won’t be escaped