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 - 1757 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: #167 / 385
  • Number of attempts: 3
Populate 3D bone names list - 525 entries

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

  • Best score: 21
  • Best player score: 29
  • Position: #72 / 141
  • Number of attempts: 4
Find fix point of cos - 1204 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: #151 / 365
  • Number of attempts: 3
Surround the 'z' character with brackets, quotes, and print as formatted string. - 507 entries

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

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

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

  • Best score: 14
  • Best player score: 23
  • Position: #339 / 523
  • Number of attempts: 3
HS exam question - 1523 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 104
  • Position: #334 / 404
  • Number of attempts: 1
Substraction (bis) - 582 entries

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

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

Quick and easy

  • Best score: 7
  • Best player score: 10
  • Position: #360 / 440
  • Number of attempts: 4
2 quick changes and a numbered list - 615 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: #111 / 148
  • Number of attempts: 3
delete swap - 1650 entries

delete all swap

  • Best score: 5
  • Best player score: 6
  • Position: #385 / 514
  • Number of attempts: 4
Visual block training - 1047 entries

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

  • Best score: 17
  • Best player score: 55
  • Position: #149 / 195
  • Number of attempts: 2
Wikitext headings to markdown - 985 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 42
  • Position: #160 / 207
  • Number of attempts: 2
Fill in the chess board - 933 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 / 180
  • Number of attempts: 17
Plotting some variables in python - 1605 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: #175 / 345
  • 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 - 1870 entries

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

  • Best score: 10
  • Best player score: 18
  • Position: #435 / 505
  • Number of attempts: 2
Generate a very basic Python constructor - 315 entries

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

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

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 31
  • Position: #199 / 281
  • 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 - 1203 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 / 247
  • Number of attempts: 1
Add semicolons - 10831 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1767 / 3055
  • 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? - 802 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 20
  • Position: #164 / 228
  • Number of attempts: 5
citizen_hacks_2019_challenge4 - 90 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 5
  • Best player score: 8
  • Position: #60 / 63
  • Number of attempts: 2
One to Ten - 2174 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 / 664
  • Number of attempts: 4
citizen_hacks_2019_challenge5 - 139 entries

For the Citizen Hacks 2019 Vim competition.

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

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

  • Best score: 24
  • Best player score: 38
  • Position: #424 / 498
  • Number of attempts: 2
Increment each number - 995 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 39
  • Position: #232 / 245
  • Number of attempts: 2
citizen_hacks_2019_challenge6 - 61 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 3
  • Best player score: 3
  • Position: #44 / 49
  • Number of attempts: 2
Song Transcription Oops - 236 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: #77 / 77
  • Number of attempts: 3
Simple Maths 2 - 35 entries

Time to practice expression register! #maths #linear

  • Best score: 17
  • Best player score: 33
  • Position: #13 / 15
  • 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 - 425 entries

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

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

Complete these (weird) calculations.

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

내 맘대로 쓰는 트위터

entered into 34 challenges

contributed 0 challenges