Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 5518cd2bfb03aa1d9402a6a3

Fix the XML

The challenge consists in having a valid xml from an incomplete source.

Start file
<I>
    <hate>
        <xml>hello
        <files>files
    </hate>
    <hate>
        <xml>xml
        <files>world
    </hate>
</I>
End file
<I>
    <hate>
        <xml>hello</xml>
        <files>files</files>
    </hate>
    <hate>
        <xml>xml</xml>
        <files>world</files>
    </hate>
</I>

View Diff

3,4c3,4
<         <xml>hello
<         <files>files
---
>         <xml>hello</xml>
>         <files>files</files>
7,8c7,8
<         <xml>xml
<         <files>world
---
>         <xml>xml</xml>
>         <files>world</files>

Solutions by @nickandbro:

Unlock 34 remaining solutions by signing in and submitting your own entry
Created by: @leo_luz

290 active golfers, 1039 entries

Solutions by @nickandbro:
18
#66 - nickGPT / @nickandbro

08/28/2024 at 04:20AM

19
#>70 - nickGPT / @nickandbro

08/28/2024 at 04:19AM

20
#>84 - nickGPT / @nickandbro

08/28/2024 at 04:19AM

21
#>93 - nickGPT / @nickandbro

08/28/2024 at 04:19AM

22
#>100 - nickGPT / @nickandbro

08/28/2024 at 04:19AM

23
#>112 - nickGPT / @nickandbro

08/28/2024 at 04:19AM

24
#>146 - nickGPT / @nickandbro

08/28/2024 at 04:19AM

25
#>179 - nickGPT / @nickandbro

08/28/2024 at 04:19AM

26
#>203 - nickGPT / @nickandbro

08/28/2024 at 04:19AM

27
#>214 - nickGPT / @nickandbro

08/28/2024 at 04:19AM

28
#>230 - nickGPT / @nickandbro

08/28/2024 at 04:19AM

28
#>230 - nickGPT / @nickandbro

08/28/2024 at 04:19AM

29
#>249 - nickGPT / @nickandbro

08/28/2024 at 04:19AM

30
#>255 - nickGPT / @nickandbro

08/28/2024 at 04:18AM

31
#>259 - nickGPT / @nickandbro

08/28/2024 at 04:18AM

32
#>262 - nickGPT / @nickandbro

08/28/2024 at 04:18AM

33
#>263 - nickGPT / @nickandbro

08/28/2024 at 04:18AM

34
#>266 - nickGPT / @nickandbro

08/28/2024 at 04:18AM

35
#>268 - nickGPT / @nickandbro

08/28/2024 at 04:18AM

36
#>271 - nickGPT / @nickandbro

08/28/2024 at 04:18AM

37
#>274 - nickGPT / @nickandbro

08/28/2024 at 04:18AM

38
#>275 - nickGPT / @nickandbro

08/28/2024 at 04:18AM

39
#>277 - nickGPT / @nickandbro

08/28/2024 at 04:18AM

40
#>278 - nickGPT / @nickandbro

08/28/2024 at 04:18AM

42
#>279 - nickGPT / @nickandbro

08/28/2024 at 04:18AM

43
#>281 - nickGPT / @nickandbro

08/28/2024 at 04:17AM

46
#>282 - nickGPT / @nickandbro

08/28/2024 at 04:17AM

48
#>284 - nickGPT / @nickandbro

08/28/2024 at 04:17AM

49
#>285 - nickGPT / @nickandbro

08/28/2024 at 04:17AM

51
#>286 - nickGPT / @nickandbro

08/28/2024 at 04:17AM

57
#>287 - nickGPT / @nickandbro

08/28/2024 at 04:17AM

62
#>288 - nickGPT / @nickandbro

08/28/2024 at 04:17AM

75
#>289 - nickGPT / @nickandbro

08/28/2024 at 04:17AM

125
#>290 - nickGPT / @nickandbro

08/28/2024 at 04:17AM