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

YAML to dotenv - 1561 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 40
  • Position: #268 / 324
  • Number of attempts: 3
Reorganize Pokémon - 846 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 21
  • Position: #99 / 232
  • Number of attempts: 4
Fix timezone format - 337 entries

Add the missing T and Z in the datetime field. There should be a T instead of the space, and a Z at the end of the datetime. `2024-08-31 18:32:00;` -> `2024-08-31T18:32:00Z;`

  • Best score: 15
  • Best player score: 19
  • Position: #72 / 111
  • Number of attempts: 3
Put a newline after every 10 lines in vim - 1685 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 11
  • Position: #161 / 566
  • Number of attempts: 3
hello-world-vimgolf - 2532 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #245 / 725
  • Number of attempts: 4
Simple, Practical, and Common - 33969 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 29
  • Position: #4799 / 7502
  • Number of attempts: 1
One number per line - 18889 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 26
  • Position: #3429 / 3898
  • Number of attempts: 2
V to the i - 4860 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 9
  • Position: #1711 / 1910
  • Number of attempts: 1
Split line with dots - 2174 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 21
  • Position: #435 / 638
  • Number of attempts: 1
Every other line - 2945 entries

AaAaAaA

  • Best score: 12
  • Best player score: 18
  • Position: #562 / 710
  • Number of attempts: 1
Copy three lines - 2909 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 21
  • Position: #461 / 644
  • Number of attempts: 1
Search and Replace 0 - 5104 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #507 / 1664
  • Number of attempts: 7
Vice versa - 8011 entries

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Position: #1649 / 2153
  • Number of attempts: 1
Collect List - 4332 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 17
  • Position: #990 / 1196
  • Number of attempts: 1
-a-b-c- - 3233 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Position: #1000 / 1143
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10748 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1616 / 3711
  • Number of attempts: 4
Simple text editing with Vim - 13521 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 13
  • Position: #537 / 3877
  • Number of attempts: 5
Tachy
Twitter:

entered into 17 challenges

contributed 0 challenges