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 - 366 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 40
  • Position: #72 / 92
  • Number of attempts: 3
Reorganize Pokémon - 412 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 21
  • Position: #66 / 111
  • Number of attempts: 4
Fix timezone format - 243 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: #60 / 82
  • Number of attempts: 3
Put a newline after every 10 lines in vim - 1660 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #159 / 558
  • Number of attempts: 3
hello-world-vimgolf - 2499 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #245 / 708
  • Number of attempts: 4
Simple, Practical, and Common - 33695 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: #4773 / 7435
  • Number of attempts: 1
One number per line - 18751 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 26
  • Position: #3410 / 3869
  • Number of attempts: 2
V to the i - 4813 entries

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

  • Best score: 7
  • Best player score: 9
  • Position: #1702 / 1897
  • Number of attempts: 1
Split line with dots - 2154 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 21
  • Position: #434 / 635
  • Number of attempts: 1
Every other line - 2915 entries

AaAaAaA

  • Best score: 12
  • Best player score: 18
  • Position: #558 / 704
  • Number of attempts: 1
Copy three lines - 2875 entries

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

  • Best score: 13
  • Best player score: 21
  • Position: #458 / 641
  • Number of attempts: 1
Search and Replace 0 - 5002 entries

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

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

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Position: #1632 / 2134
  • Number of attempts: 1
Collect List - 4305 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 17
  • Position: #986 / 1191
  • Number of attempts: 1
-a-b-c- - 3216 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Position: #995 / 1138
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10676 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1616 / 3687
  • Number of attempts: 4
Simple text editing with Vim - 12925 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 / 3722
  • Number of attempts: 5
Tachy
Twitter:

entered into 17 challenges

contributed 0 challenges