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 [challenge ID]

Played Challenges

Create json from a .env file - 1658 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 46
  • Position: #105 / 407
  • Number of attempts: 5
YAML to dotenv - 1600 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 16
  • Position: #56 / 335
  • Number of attempts: 9
Rearrange array to single level - 1814 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 28
  • Position: #169 / 306
  • Number of attempts: 4
Rearrange array to one line - 889 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 20
  • Position: #99 / 205
  • Number of attempts: 3
Copy punctuation - 736 entries

I want to copy the last line’s brackets, quotes, and commas to each line. How?

  • Best score: 19
  • Best player score: 80
  • Position: #156 / 179
  • Number of attempts: 2
Deleting text - 342 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 49
  • Position: #85 / 110
  • Number of attempts: 1
Find anomalies - 166 entries

There is one special character per line

  • Best score: 30
  • Best player score: 87
  • Position: #41 / 45
  • Number of attempts: 2
Words in parens - 13034 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #1189 / 3988
  • Number of attempts: 5
Rayan Ali SALEM
Github:

entered into 8 challenges

contributed 0 challenges