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

Simple, Practical, and Common - 33354 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: 22
  • Position: #1042 / 7358
  • Number of attempts: 5
Swap values - 4535 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Position: #691 / 1255
  • Number of attempts: 3
One number per line - 18615 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1652 / 3841
  • Number of attempts: 3
SCREAMING_SNAKE_CASE to Title Case - 1177 entries

Convert strings in SCREAMING_SNAKE_CASE to Title Case. Examples: EMPLOYEE_NAME -> Employee Name REVENUE_YEAR_TO_DATE -> Revenue Year To Date SALARY -> Salary

  • Best score: 19
  • Best player score: 35
  • Position: #214 / 243
  • Number of attempts: 1
Add semicolons - 10785 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 13
  • Position: #1971 / 3042
  • Number of attempts: 2
Split line with dots - 2124 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 17
  • Position: #252 / 629
  • Number of attempts: 2
Box it - 7818 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 31
  • Position: #1431 / 1861
  • Number of attempts: 2
From argument to object - 1474 entries

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

  • Best score: 17
  • Best player score: 18
  • Position: #212 / 450
  • Number of attempts: 3
Every other line - 2886 entries

AaAaAaA

  • Best score: 12
  • Best player score: 15
  • Position: #308 / 700
  • Number of attempts: 6
Copy three lines - 2839 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #189 / 634
  • Number of attempts: 5
Start coding format - 147 entries

I used to start coding with following format: int main(){ -(cursor here) }

  • Best score: 22
  • Best player score: 23
  • Position: #32 / 70
  • Number of attempts: 1
Just the middle - 11346 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2279 / 4160
  • Number of attempts: 1
Flatten repo - 23 entries

For each git repository (<project> tag) translate name attribute to flatten directory structure. Add path attribute if missing (because checkout hierarchy must be kept). #xml

  • Best score: 43
  • Best player score: 96
  • Position: #9 / 9
  • Number of attempts: 1
Vice versa - 7778 entries

Little role switching.

  • Best score: 12
  • Best player score: 13
  • Position: #745 / 2095
  • Number of attempts: 5
Paragraph breaks - 505 entries

Swap the blank lines and the aaa lines.

  • Best score: 10
  • Best player score: 12
  • Position: #88 / 165
  • Number of attempts: 3
Hello ${world} - 299 entries

Migrate a JavaScript String from concatenation to ES6 interpolation.

  • Best score: 24
  • Best player score: 30
  • Position: #63 / 94
  • Number of attempts: 2
Collect List - 4261 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #251 / 1185
  • Number of attempts: 4
I forgot quotes - 15923 entries

Oops.

  • Best score: 10
  • Best player score: 12
  • Position: #1294 / 4159
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10616 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2128 / 3663
  • Number of attempts: 1
Words in parens - 12850 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1555 / 3944
  • Number of attempts: 4
Igor Czerwinski
Twitter:

Frontend developer at @fundingcircle. Ex-@lastfm. Interested in functional JavaScript, web a11y and bad action movies.

entered into 20 challenges

contributed 0 challenges