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 - 1709 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: #165 / 375
  • Number of attempts: 3
Populate 3D bone names list - 492 entries

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

  • Best score: 21
  • Best player score: 29
  • Position: #68 / 136
  • Number of attempts: 4
Find fix point of cos - 1173 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: #146 / 356
  • Number of attempts: 3
Surround the 'z' character with brackets, quotes, and print as formatted string. - 504 entries

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

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

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

  • Best score: 14
  • Best player score: 23
  • Position: #332 / 514
  • Number of attempts: 3
HS exam question - 1521 entries

Convert the data to a python dictionary

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

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

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

Quick and easy

  • Best score: 7
  • Best player score: 10
  • Position: #349 / 429
  • Number of attempts: 4
2 quick changes and a numbered list - 613 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 / 147
  • Number of attempts: 3
delete swap - 1621 entries

delete all swap

  • Best score: 5
  • Best player score: 6
  • Position: #380 / 505
  • Number of attempts: 4
Visual block training - 1045 entries

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

  • Best score: 17
  • Best player score: 55
  • Position: #148 / 194
  • Number of attempts: 2
Wikitext headings to markdown - 984 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 42
  • Position: #159 / 206
  • Number of attempts: 2
Fill in the chess board - 932 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 / 179
  • Number of attempts: 17
Plotting some variables in python - 1597 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: #173 / 342
  • Number of attempts: 1
Increment number for every 10 lines - 228 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: #46 / 62
  • Number of attempts: 11
Inverting Lines - 1866 entries

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

  • Best score: 10
  • Best player score: 18
  • Position: #434 / 504
  • 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 - 1120 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 31
  • Position: #199 / 280
  • Number of attempts: 4
citizen_hacks_2019_challenge2 - 193 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 - 1202 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 - 10823 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1767 / 3052
  • 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 - 2022 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 - 994 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 39
  • Position: #231 / 244
  • 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 - 235 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: #76 / 76
  • 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