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 - 1458 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: 6
  • Position: #75 / 317
  • Number of attempts: 8
EDN reformat - 936 entries

The goal is to make the code more readable and concise while maintaining its functionality.

  • Best score: 17
  • Best player score: 18
  • Position: #20 / 134
  • Number of attempts: 4
Tic-Tac-Toe Grid Transformation - 290 entries

Your mission is to efficiently convert the original Tic-Tac-Toe grid, represented by 'x's and 'o's, into a neat and well-organized game board.

  • Best score: 58
  • Best player score: 75
  • Position: #21 / 68
  • Number of attempts: 9
Populate 3D bone names list - 405 entries

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

  • Best score: 21
  • Best player score: 21
  • Position: #15 / 106
  • Number of attempts: 7
Paste a column after a column - 2170 entries

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

  • Best score: 14
  • Best player score: 14
  • Position: #51 / 464
  • Number of attempts: 7
Tabbed Table to Python Array - 607 entries

Not payed by the hour? So make it fast ;-) The table contains the relative occurencies of bigrams (two consecutive letters) in 1/100,000 in the german language, copy-pasted from http://www.mathe.tu-freiberg.de/~hebisch/cafe/kryptographie/bigramme.html

  • Best score: 50
  • Best player score: 60
  • Position: #76 / 159
  • Number of attempts: 6
HS exam question - 1468 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 48
  • Position: #22 / 388
  • Number of attempts: 6
Reformat symbols in list - 1447 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 27
  • Position: #110 / 318
  • Number of attempts: 5
Fizzbuzz - 489 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 47
  • Best player score: 78
  • Position: #78 / 153
  • Number of attempts: 2
Substraction (bis) - 559 entries

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

  • Best score: 21
  • Best player score: 28
  • Position: #45 / 105
  • Number of attempts: 2
Poorly indented Python comments - 1149 entries

Fix the alignment of some Python comments as quickly as possible.

  • Best score: 15
  • Best player score: 16
  • Position: #50 / 199
  • Number of attempts: 12
Generate a very basic Python constructor (fixed) - 1171 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 29
  • Position: #25 / 244
  • Number of attempts: 11
Fix the shell script! - 2064 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 27
  • Position: #79 / 496
  • Number of attempts: 6
Put a newline after every 10 lines in vim - 1554 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 13
  • Position: #331 / 518
  • Number of attempts: 2
Wikitext headings to markdown - 960 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 21
  • Position: #57 / 198
  • Number of attempts: 6
Fill in the chess board - 886 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: #18 / 173
  • Number of attempts: 9
Learn to ask for :help - 510 entries

Learn to use the help to reduce your strokes...

  • Best score: 19
  • Best player score: 25
  • Position: #43 / 118
  • Number of attempts: 4
Plotting some variables in python - 1541 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: 34
  • Position: #40 / 328
  • Number of attempts: 10
Transpose a python matrix - 823 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 23
  • Position: #15 / 132
  • Number of attempts: 9
Python dataclasses - 982 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 23
  • Position: #107 / 248
  • Number of attempts: 3
Modernise code - 1331 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 41
  • Position: #127 / 306
  • Number of attempts: 5
swap number pairs - 2002 entries

Swap the numbers in a bunch of 2-element arrays.

  • Best score: 16
  • Best player score: 20
  • Position: #137 / 369
  • Number of attempts: 3
HS Final exam vimgolf - 864 entries

Change the initial file to a single line containing all names comma-separated with numbers inside parentheses.

  • Best score: 21
  • Best player score: 22
  • Position: #73 / 227
  • Number of attempts: 10
Levenshtein distance - 104 entries

Compute distance for each pair. Notice that this recursive implementation is very inefficient. Wagner-Fischer algorithm is iterative and much faster. #vimscript

  • Best score: 27
  • Best player score: 34
  • Position: #18 / 36
  • Number of attempts: 4
Data reformat - 271 entries

Reformat this copy-paste data! #csv

  • Best score: 38
  • Best player score: 55
  • Position: #41 / 60
  • Number of attempts: 3
Get mail address from outlook format - 621 entries

Create a mail list space separated of mail list formatted by outlook

  • Best score: 15
  • Best player score: 16
  • Position: #120 / 196
  • Number of attempts: 3
Conway sequence - 23 entries

Generate the the first fifteen numbers. See here for more information: http://en.wikipedia.org/wiki/Look-and-say_sequence

  • Best score: 43
  • Best player score: 64
  • Position: #18 / 18
  • Number of attempts: 1
Pascal's Triangle - 34 entries

Generate the first 17 left-justified rows of Pascal's triangle.

  • Best score: 36
  • Best player score: 36
  • Position: #10 / 15
  • Number of attempts: 3
ShookerAndBeta
Twitter:

entered into 28 challenges

contributed 0 challenges