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

Find fix point of cos - 1030 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: #98 / 300
  • Number of attempts: 8
Insert column data on Confluence-style table - 415 entries

Add ip addresses into new "IP" column based on the last digits from the "Server" column

  • Best score: 33
  • Best player score: 34
  • Position: #11 / 94
  • Number of attempts: 14
Surround the 'z' character with brackets, quotes, and print as formatted string. - 449 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #27 / 248
  • Number of attempts: 1
Easier Align - 257 entries

Align the columns of a markdown table

  • Best score: 57
  • Best player score: 190
  • Position: #42 / 81
  • Number of attempts: 2
Paste a column after a column - 2120 entries

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

  • Best score: 14
  • Best player score: 16
  • Position: #127 / 453
  • Number of attempts: 12
HS exam question - 1420 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 108
  • Position: #323 / 382
  • Number of attempts: 3
Reformat symbols in list - 1417 entries

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

  • Best score: 24
  • Best player score: 33
  • Position: #188 / 312
  • Number of attempts: 10
Fizzbuzz - 486 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 47
  • Best player score: 105
  • Position: #129 / 152
  • Number of attempts: 1
Substraction (bis) - 558 entries

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

  • Best score: 21
  • Best player score: 22
  • Position: #12 / 104
  • Number of attempts: 16
Changing around text with citations - 302 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 28
  • Position: #11 / 85
  • Number of attempts: 7
Poorly indented Python comments - 1145 entries

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

  • Best score: 15
  • Best player score: 15
  • Position: #24 / 197
  • Number of attempts: 16
Many duplicates - 1189 entries

Quick and easy

  • Best score: 7
  • Best player score: 7
  • Position: #11 / 387
  • Number of attempts: 4
2 quick changes and a numbered list - 573 entries

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

  • Best score: 37
  • Best player score: 37
  • Position: #17 / 138
  • Number of attempts: 10
delete swap - 1454 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #131 / 461
  • Number of attempts: 1
Generate a very basic Python constructor (fixed) - 1155 entries

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

  • Best score: 29
  • Best player score: 51
  • Position: #173 / 243
  • Number of attempts: 6
Fix the shell script! - 2050 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 27
  • Position: #86 / 493
  • Number of attempts: 8
Visual block training - 949 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #3 / 174
  • Number of attempts: 26
Innocent Monster - 155 entries

You have the tools, just create him!

  • Best score: 60
  • Best player score: 68
  • Position: #16 / 46
  • Number of attempts: 5
Put a newline after every 10 lines in vim - 1550 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #54 / 517
  • Number of attempts: 4
Java to JavaScript - 253 entries

Let convert some simple Java file to JavaScript!

  • Best score: 59
  • Best player score: 64
  • Position: #16 / 65
  • Number of attempts: 9
Wikitext headings to markdown - 946 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 20
  • Position: #29 / 197
  • Number of attempts: 14
hello-world-vimgolf - 2294 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #110 / 648
  • Number of attempts: 3
Contribute to keyboard mashing - 806 entries

Speak in tongues

  • Best score: 17
  • Best player score: 18
  • Position: #92 / 247
  • Number of attempts: 4
Reordering Lorem Ipsum - 231 entries

Who even sorted this?

  • Best score: 13
  • Best player score: 13
  • Position: #17 / 58
  • Number of attempts: 10
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: #24 / 173
  • Number of attempts: 20
Learn to ask for :help - 509 entries

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

  • Best score: 19
  • Best player score: 47
  • Position: #105 / 117
  • Number of attempts: 1
Plotting some variables in python - 1539 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: #2 / 327
  • Number of attempts: 7
Transpose a python matrix - 823 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 23
  • Position: #5 / 132
  • Number of attempts: 11
Create a diamond comment - 301 entries

Encapsulate the text in a diamond pattern.

  • Best score: 27
  • Best player score: 28
  • Position: #16 / 70
  • Number of attempts: 10
Lowercase first characters - 455 entries

This is the (abridged) input for Day 3 in Advent of Code 2019. The output is a format more suitable for Prolog programming: the two lines of input become two lists of pairs, joined together in a wires functor.

  • Best score: 33
  • Best player score: 33
  • Position: #5 / 170
  • Number of attempts: 12
Make list of numbers from 1 to 30 more compact, but more confusing - 87 entries

Change the naming logic of numbers to end up with less lines.

  • Best score: 74
  • Best player score: 104
  • Position: #16 / 35
  • Number of attempts: 2
Migrated to Postgres! - 299 entries

Celebration completion of this project. https://github.com/igrigorik/vimgolf/pull/322

  • Best score: 26
  • Best player score: 29
  • Position: #58 / 118
  • Number of attempts: 3
Increment number for every 10 lines - 212 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: 44
  • Position: #30 / 58
  • Number of attempts: 9
simple replacements - 1508 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 19
  • Position: #24 / 330
  • Number of attempts: 11
Inverting Lines - 1774 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #86 / 481
  • Number of attempts: 7
CSV to MD format - 378 entries

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 40
  • Position: #28 / 87
  • Number of attempts: 14
Generate a very basic Python constructor - 307 entries

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

  • Best score: 38
  • Best player score: 38
  • Position: #12 / 94
  • Number of attempts: 17
Python dataclasses - 972 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 19
  • Position: #27 / 247
  • Number of attempts: 8
Count to 100 in word form - 92 entries

Write all the numbers from 1 to 100, using their word forms rather than the digit form. Most of the parts you will need are included in the input file. Use hyphens when appropriate.

  • Best score: 53
  • Best player score: 78
  • Position: #17 / 25
  • Number of attempts: 5
RUST match with enum for Coin - 176 entries

RUST match with enum for Coin rusty practice on vimgolf

  • Best score: 84
  • Best player score: 105
  • Position: #25 / 50
  • Number of attempts: 5
Making 3 line function a one liner. - 301 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #40 / 191
  • Number of attempts: 1
Modernise code - 1316 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 35
  • Position: #88 / 304
  • Number of attempts: 6
Put a cross in the square - 201 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 25
  • Position: #75 / 83
  • Number of attempts: 1
swap number pairs - 2000 entries

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

  • Best score: 16
  • Best player score: 32
  • Position: #263 / 368
  • Number of attempts: 3
HS Final exam vimgolf - 862 entries

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

  • Best score: 21
  • Best player score: 28
  • Position: #133 / 225
  • Number of attempts: 8
sap
Twitter:

entered into 45 challenges

contributed 0 challenges