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

From brakets to parens - 1306 entries

This is one of the most common problem when you wrap an array for error handling. Vim is useful when you convert foo[i][j][k] into foo(i, j, k) for many times.

  • Best score: 24
  • Best player score: 72
  • Position: #279 / 295
  • Number of attempts: 2
YAML to dotenv - 1637 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 38
  • Position: #280 / 342
  • Number of attempts: 1
Copy punctuation - 747 entries

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

  • Best score: 19
  • Best player score: 73
  • Position: #158 / 183
  • Number of attempts: 1
New teacher - 1527 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 27
  • Position: #196 / 319
  • Number of attempts: 3
Remove line numbers - 786 entries

From http://web.archive.org/web/20140831121704/http://dirac.org/linux/gdb/02a-Memory_Layout_And_The_Stack.php#investigatingthestackwithgdb.

  • Best score: 8
  • Best player score: 14
  • Position: #115 / 209
  • Number of attempts: 2
Find fix point of cos - 1485 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 16
  • Position: #290 / 434
  • Number of attempts: 2
Many duplicates - 1489 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #325 / 484
  • Number of attempts: 9
delete swap - 1912 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #391 / 580
  • Number of attempts: 29
Visual block training - 1118 entries

You see the input. You see the output. Go.

  • Best score: 17
  • Best player score: 19
  • Position: #57 / 209
  • Number of attempts: 2
Wikitext headings to markdown - 1039 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 82
  • Position: #205 / 215
  • Number of attempts: 1
hello-world-vimgolf - 2533 entries

Simple number generation

  • Best score: 10
  • Best player score: 11
  • Position: #437 / 726
  • Number of attempts: 11
Staircase - 178 entries

Going downstairs, while singing the alphabet song. Some vb practice to us all. Would it be much easier to make it go from left to right instead?

  • Best score: 21
  • Best player score: 44
  • Position: #31 / 38
  • Number of attempts: 3
C Reformatting - 712 entries

You may use Visual mode... or not. #uppercase

  • Best score: 30
  • Best player score: 62
  • Position: #128 / 167
  • Number of attempts: 2
Words in parens - 13054 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 22
  • Position: #3626 / 3991
  • Number of attempts: 1
Word frequency alignment - 310 entries

You've got to align the second column, but the spacing is inconvenient and there are nasty tabs in the way. If you're a "real Vim ninja," this could be very quick indeed...

  • Best score: 5
  • Best player score: 5
  • Position: #128 / 166
  • Number of attempts: 1
Vertical Limit - 2637 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 22
  • Position: #191 / 778
  • Number of attempts: 20
Assignment Alignment - 909 entries

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 35
  • Position: #201 / 226
  • Number of attempts: 4
Emil Miler
Github:

entered into 17 challenges

contributed 0 challenges