Vim-golf

Discussion about golfing in Vim/V. vim.org/download.php github...
Aug 21, 2019 18:13
oh nvmd read my emails wrong
Aug 21, 2019 18:12
Makes sense. did the 1.0.1 push fix the "startin gon the second line" issue?
Aug 21, 2019 17:53
sorry chokes on that one
Aug 21, 2019 17:53
5
A: (A[l(t[e(r)n]e)s]t) a string!

nmjcman101V, 25 26 25 bytes 1 2 bytes off thanks to @DJMcMayhem òC()Pé %llòÍî òF)%r[r]; Try it online! Borrowed some of @udioca's ideas. Also finally used the surround plugin included in V for an answer, although it may not have been the best way, who knows. The plugin does NOT want to be used. He...

Aug 21, 2019 17:16
so far choking also on this one codegolf.stackexchange.com/a/140293/62346
Aug 21, 2019 17:14
very fast with this answer codegolf.stackexchange.com/a/140293/62346
Aug 21, 2019 17:12
Works with just "iHello World". Just figured out I need to put source into a file. Doesn't seem to like this answer codegolf.stackexchange.com/a/137194/62346
Aug 21, 2019 17:01
I'm at work so no guarantees on speed
Aug 21, 2019 16:47
@DJMcMayhem haven't been on here or used V in a while, but you're an absolute madman for rewriting Python->Bash. Really impressive, nice job
Aug 23, 2017 17:37
when would you use it? combining ex commands to try and save bytes?
Aug 23, 2017 17:37
agree
Aug 23, 2017 17:36
oh got it. that seems like there could be a more obscure case where I want to do it in command mode and have it work the new way but that's probably not going to happen
Aug 23, 2017 17:34
why prepend a :?
Aug 23, 2017 17:33
I've been thinking that remap would be useful for a while but i agree with breaking something obscure
Aug 23, 2017 17:33
Yeah because it marks all the lines that match, and then goes through and does the thing on them
Aug 23, 2017 17:30
The nice thing about making it ç^/ is that it works SLIGHTLY differently which is sometimes useful. IE you can do the ç^/m0 trick to reverse everything
Aug 23, 2017 17:11
(Ignoring that issue for a second) Try it online! doesn't even finish running and I'm not sure why
Aug 23, 2017 17:03
(also here's an instance where something like would be neat but I don't know how many other places it would b ehelpful)
Aug 23, 2017 17:02
I have this Try it online! but the <M-j> does funny things on the last line
Aug 23, 2017 17:01
and you're relying on autoindent to try and continue the spacing?
Aug 23, 2017 17:00
So on the last line you break on l
Aug 23, 2017 16:59
Oh wait I got it
Aug 23, 2017 16:59
Why GG at the end?
Aug 23, 2017 16:54
Do you still have the command around?
Aug 23, 2017 16:51
The current line and column are super sweet as are those shortcuts. I like your answer, i was trying to finagle Î>Gäê into it
Aug 18, 2017 12:13
Unrelated: your octothorpe challenge is proving difficult
Aug 18, 2017 12:13
When I get home I can test it out and make a pull
Aug 18, 2017 12:13
I'm pretty sure this could be fixed by having a l:append = ""; if (end of line section) l:append = "l"; command = <current command>.l:append
Aug 18, 2017 12:13
@DJMcMayhem I'll add the increment ascii unfleshed idea to "V Features". Unrelated, duplicate still has a small bug. When you run <count>äl in the middle of a line, the cursor jumps to the end of the paste, but if you run it at the end, the cursor is one char away from the end Try it online!
Aug 17, 2017 11:58
@DJMcMayhem Something that might be useful: incrementing and decrementing codepoints. We can't do <C-M-a> because that apparently does nothing, but there are enough alphabet challenges that being able to go from a to b with a keystroke could be useful
Aug 7, 2017 17:52
@EriktheOutgolfer Thanks!
Aug 2, 2017 16:15
@DJMcMayhem ah it has to do with selection option. mine is exclusive for some reason
Aug 2, 2017 15:16
Alright, thanks
Aug 2, 2017 15:14
Aug 2, 2017 15:13
@DJMcMayhem at least in my vim (GVim 8 Windows) v| doesn't include the letter I'm on, so $v|d leaves the last letter, where it would delete the whole line in V
Aug 2, 2017 15:03
@DJMcMayhem I've noticed in V that d| and v|d behave differently, and mostly that v|d is different than doing v|d in vim Try it online! is that a setting or something? (that v selects what it's currently on)
Jul 17, 2017 16:58
yeah that
Jul 17, 2017 16:58
silent exe "normal! |c".l:nmatches
Jul 17, 2017 16:57
I think because in the macro you probably do i<number>? I don't know.
Jul 17, 2017 16:56
7 bytes: Try it online! (although pointless after @DJMcMayhem 6 bytes)
 

 The Nineteenth Byte

The Nineteenth Byte: General discussion for codegolf.stackexc...
Aug 25, 2017 18:40
I don't think he is inputting that, I think it came from some other code
Aug 22, 2017 13:23
It seems like they want a code-challenge?
Aug 21, 2017 15:34
It could do the ToC as well
Aug 21, 2017 15:34
@ASCII-only but you could still make a python+beautifulsoup+json script to parse both your page and TIOs languages JSON and put the links in there
Aug 21, 2017 15:07
@ASCII-only Oh I didn't realize it was a by-hand thing, I thought it was generated based on what's in the TIO github or something
Aug 21, 2017 14:08
@ASCII-only You should link the languages githubs like TIO does when you copy a codegolf answer
Aug 2, 2017 14:38
@DJMcMayhem Can we get Vim-golf unfrozen?
 

 Jelly

Discussion of the Jelly programming language. (github.com/Denn...
Jul 19, 2017 17:24
Yeah I knew that just phrasing, thank you!
Jul 19, 2017 17:23
Line 1 looks like 1 -> 11 but I want it to look like 1 -> [1,1]
Jul 19, 2017 17:22
@EriktheOutgolfer how do I get Try it online! to not concatenate the various arrays?