« first day (389 days earlier)      last day (1422 days later) » 

3:33 PM
@DJMcMayhem is there a way to do æ linewise?
where [Try it online!](https://tio.run/##K/v/P@zwsoL//xOTkgE "V – Try It Online") would produce:
`cba
abc`
 
@nmjcman101 What do you expect linewise to do? Right now, it reverses the order of the lines
But if it operates on one line, it reverses that line by itself
So you could do Äæ_
 
I think that linewise is the wrong word... but where æ$p and æ_p would do different things? I guess just so that the register would have the ^J at the end like how dd and d$ differ
 
Well shoot, apparently linewise flips don't actually yank anything
 
Hmm. I'm thinking "single line" behaviour, but yank the line with ^J as opposed to just the text on the line. But that could have been annoying too.
 
3:56 PM
@nmjcman101 I Know, I'm just saying the current version isn't consistent. Doing that would break answers like this:
2
A: In Honor of Adam West

DJMcMayhemV, 102 bytes i±³ *±± ³ *± ´*· ´*±² ´*µ ´*±² ¶*³ µ*¹ ¹* ²´* Ä3o²µ*jo±±*· µ* ³*´ ³*· ´*´ **¶ *· **· Îæ$vp Try it online! Hexdump: 00000000: 69b1 b320 2ab1 b120 0ab3 202a b120 b42a i.. *.. .. *. .* 00000010: b720 0ab4 2ab1 b220 b42a b520 0ab4 2ab1 . ..*.. .*. ..*. 00000020: b220 b...

 
@DJMcMayhem The way I'm thinking it wouldn't break that because that uses æ$
 
Oh duh, that's right
 
I'm not sayin gthat it's easy to implement thou
 
4:24 PM
Nah, just add a Y to the end of the mapping
While I'm at it, the actual linewise should yank to (movements like æj, æG, etc.)
 
What's the actual mnemonic for it?
 
<M-f> (f for flip)
Stupid autocorrect
 
@DJMcMayhem What about having <M-F> for doing it on the whole line? Like how <M-d> and <M-D> are related
 
@nmjcman101 I was planning on having <M-F> work exactly the same except for also mirroring certain characters (like brackets and slashes)
 
Got it.
 
4:38 PM
That'll be really tough to implement though
 
Perhaps. I think it wouldn't be too bad to just do a "tr('(){}[]<>/\',')(}{][><\/')" ?
 
Wait, does vim have tr?
 
yessir
 
Cool
I was thinking I'd use :substitute but that looks simpler
Although, only if you want it in vimscript, not in the buffer
 
Right, but I think you use a lot of vimscript for reverse anyway
 
4:43 PM
Wait, it works in a substitute command
That's beautiful
 
TR works in substitute? like s/<regex>/\=tr()/? or some other way
 
:s/./\=tr(submatch(0), '(){}[]<>/\', ')(}{][><\/')/g
 
right
 
Although since tr works on the whole string, you could just do :s/.*/\=tr(submatch(0), '(){}[]<>/\', ')(}{][><\/') to keep it simpler
@nmjcman101 Well, thanks for broadening my understanding of vimL! :)
 
@DJMcMayhem lol anytime
@DJMcMayhem can you explain lines 28-29 in github.com/DJMcMayhem/V/blob/master/nvim/reverse.vim
Oh wait nevermind
it's because line 29 needs the text to already be in the register
 
4:53 PM
Yep
 

« first day (389 days earlier)      last day (1422 days later) »