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 596ba8373e3dd71412000004

Create a table

Convert the given input into a formatted table

Start file
Item name            Quantity
Eggs                        2
Cucumber                   20
Watermelons                 1
End file
Item name   | Quantity
----------------------
Eggs        |        2
Cucumber    |       20
Watermelons |        1

View Diff

1,4c1,5
< Item name            Quantity
< Eggs                        2
< Cucumber                   20
< Watermelons                 1
---
> Item name   | Quantity
> ----------------------
> Eggs        |        2
> Cucumber    |       20
> Watermelons |        1

Solutions by @PeppaPigSg:

Unlock 7 remaining solutions by signing in and submitting your own entry
Created by: @PaNaVTEC

107 active golfers, 342 entries

Solutions by @PeppaPigSg:
16
#50 - Peppa Pig / @PeppaPigSg

07/20/2024 at 01:16AM

17
#>59 - Peppa Pig / @PeppaPigSg

04/29/2024 at 05:22AM

18
#>72 - Peppa Pig / @PeppaPigSg

04/29/2024 at 05:21AM

19
#>79 - Peppa Pig / @PeppaPigSg

04/29/2024 at 05:21AM

21
#>87 - Peppa Pig / @PeppaPigSg

04/29/2024 at 05:20AM

22
#>89 - Peppa Pig / @PeppaPigSg

04/29/2024 at 05:19AM

24
#>94 - Peppa Pig / @PeppaPigSg

04/29/2024 at 05:18AM