Fork me on GitHub
#spacemacs
<
2019-09-16
>
Yehonathan Sharvit12:09:13

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

jahson12:09:46

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

jahson12:09:38

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 ()

theeternalpulse16:09:39

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

ag17:09:28

check standard-hooks

theeternalpulse16:09:23

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

practicalli-johnny18:09:34

@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. https://practicalli.github.io/spacemacs/editing/vim-style/vim-tips-for-developers.html

❤️ 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