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

Quicksort - 1838 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 24
  • Position: #171 / 403
  • Number of attempts: 3
Populate 3D bone names list - 580 entries

Ran into this at work, excited to see how this gets optimized

  • Best score: 21
  • Best player score: 29
  • Position: #74 / 147
  • Number of attempts: 4
Find fix point of cos - 1303 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: 15
  • Position: #153 / 381
  • Number of attempts: 3
Surround the 'z' character with brackets, quotes, and print as formatted string. - 532 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 17
  • Position: #131 / 294
  • Number of attempts: 1
Paste a column after a column - 2477 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 23
  • Position: #347 / 535
  • Number of attempts: 3
HS exam question - 1539 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 104
  • Position: #339 / 410
  • Number of attempts: 1
Substraction (bis) - 584 entries

Solve the equations (adapted from the original @Caek_'s challenge).

  • Best score: 21
  • Best player score: 71
  • Position: #91 / 111
  • Number of attempts: 7
Many duplicates - 1420 entries

Quick and easy

  • Best score: 7
  • Best player score: 10
  • Position: #373 / 458
  • Number of attempts: 4
2 quick changes and a numbered list - 642 entries

The ascii will not be lost, but rather numbered in 4 digit blocks with leading zeros.

  • Best score: 37
  • Best player score: 61
  • Position: #113 / 153
  • Number of attempts: 3
delete swap - 1754 entries

delete all swap

  • Best score: 5
  • Best player score: 6
  • Position: #406 / 542
  • Number of attempts: 4
Visual block training - 1069 entries

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

  • Best score: 17
  • Best player score: 55
  • Position: #152 / 203
  • Number of attempts: 2
Wikitext headings to markdown - 986 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 42
  • Position: #161 / 208
  • Number of attempts: 2
Fill in the chess board - 947 entries

Fill in the name of each square using its file (a-h) and rank (1-8).

  • Best score: 19
  • Best player score: 19
  • Position: #30 / 181
  • Number of attempts: 17
Plotting some variables in python - 1660 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

  • Best score: 34
  • Best player score: 46
  • Position: #176 / 347
  • Number of attempts: 1
Increment number for every 10 lines - 229 entries

The file consists of 2 columns (code and percentage). We need to add 2 more columns with increasing number for 4th column (Xcols) and increment 3rd column (Ycols) only for every 10 lines with reset of 4th column

  • Best score: 25
  • Best player score: 63
  • Position: #47 / 63
  • Number of attempts: 11
Inverting Lines - 1879 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 18
  • Position: #436 / 507
  • Number of attempts: 2
Generate a very basic Python constructor - 316 entries

I actually needed to do this myself, so I look forward to learning how.

  • Best score: 38
  • Best player score: 64
  • Position: #69 / 98
  • Number of attempts: 1
Python dataclasses - 1127 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 31
  • Position: #200 / 283
  • Number of attempts: 4
citizen_hacks_2019_challenge2 - 194 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 8
  • Position: #100 / 101
  • Number of attempts: 1
SCREAMING_SNAKE_CASE to Title Case - 1213 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: 30
  • Position: #179 / 248
  • Number of attempts: 1
Add semicolons - 10841 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1767 / 3058
  • Number of attempts: 2
citizen_hacks_2019_challenge3 - 37 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 4
  • Best player score: 4
  • Position: #30 / 34
  • Number of attempts: 1
Cool or not? - 829 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 20
  • Position: #165 / 230
  • Number of attempts: 5
citizen_hacks_2019_challenge4 - 94 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 5
  • Best player score: 8
  • Position: #60 / 64
  • Number of attempts: 2
One to Ten - 2209 entries

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

  • Best score: 12
  • Best player score: 12
  • Position: #354 / 669
  • Number of attempts: 4
citizen_hacks_2019_challenge5 - 144 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 6
  • Position: #47 / 76
  • Number of attempts: 3
Line under headers - 2028 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 24
  • Best player score: 38
  • Position: #425 / 499
  • Number of attempts: 2
Increment each number - 1020 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 39
  • Position: #234 / 247
  • Number of attempts: 2
citizen_hacks_2019_challenge6 - 64 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 3
  • Best player score: 3
  • Position: #44 / 50
  • Number of attempts: 2
Song Transcription Oops - 243 entries

When transcribing vocal music to Canjo Tab you can start by finding the lowest note and assigning that to zero and working your way up from there. However, without fail, I tend to miscount the notes and when I am near done I find a lower note. I mark this with a "z". This means I have to increase all the previous ones by 1. just a sting of numbers :)

  • Best score: 15
  • Best player score: 36
  • Position: #78 / 78
  • Number of attempts: 3
Simple Maths 2 - 44 entries

Time to practice expression register! #maths #linear

  • Best score: 17
  • Best player score: 33
  • Position: #14 / 16
  • Number of attempts: 1
citizen_hacks_2019_challenge1 - 50 entries

For the Citizen Hacks 2019 Vim competition

  • Best score: 5
  • Best player score: 5
  • Position: #36 / 44
  • Number of attempts: 1
Alphabet soup - 428 entries

Create a column of all alphabet characters organized in a funky way

  • Best score: 25
  • Best player score: 41
  • Position: #88 / 107
  • Number of attempts: 2
calculations - 312 entries

Complete these (weird) calculations.

  • Best score: 38
  • Best player score: 65
  • Position: #62 / 68
  • Number of attempts: 1
으앙
Twitter2:

내 맘대로 쓰는 트위터

entered into 34 challenges

contributed 0 challenges