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

HS exam question - 1043 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 47
  • Position: #11 / 283
  • Number of attempts: 16
Reformat symbols in list - 926 entries

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

  • Best score: 24
  • Best player score: 24
  • Position: #24 / 215
  • Number of attempts: 5
Fizzbuzz - 324 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 47
  • Best player score: 47
  • Position: #11 / 100
  • Number of attempts: 1
Substraction (bis) - 344 entries

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

  • Best score: 22
  • Best player score: 22
  • Position: #11 / 75
  • Number of attempts: 13
Changing around text with citations - 188 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 28
  • Position: #15 / 57
  • Number of attempts: 7
Poorly indented Python comments - 832 entries

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

  • Best score: 15
  • Best player score: 15
  • Position: #27 / 161
  • Number of attempts: 1
Many duplicates - 814 entries

Quick and easy

  • Best score: 7
  • Best player score: 7
  • Position: #15 / 271
  • Number of attempts: 2
2 quick changes and a numbered list - 427 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: #18 / 102
  • Number of attempts: 2
delete swap - 983 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #147 / 322
  • Number of attempts: 1
Generate a very basic Python constructor (fixed) - 901 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: #39 / 202
  • Number of attempts: 6
Fix the shell script! - 1575 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 26
  • Position: #37 / 393
  • Number of attempts: 1
Visual block training - 729 entries

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

  • Best score: 17
  • Best player score: 18
  • Position: #22 / 140
  • Number of attempts: 1
Put a newline after every 10 lines in vim - 1294 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #28 / 443
  • Number of attempts: 3
Java to JavaScript - 214 entries

Let convert some simple Java file to JavaScript!

  • Best score: 59
  • Best player score: 59
  • Position: #9 / 55
  • Number of attempts: 1
Wikitext headings to markdown - 777 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 20
  • Position: #31 / 169
  • Number of attempts: 1
hello-world-vimgolf - 1906 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #228 / 544
  • Number of attempts: 1
Contribute to keyboard mashing - 735 entries

Speak in tongues

  • Best score: 17
  • Best player score: 17
  • Position: #44 / 227
  • Number of attempts: 1
Reordering Lorem Ipsum - 212 entries

Who even sorted this?

  • Best score: 13
  • Best player score: 13
  • Position: #18 / 53
  • Number of attempts: 1
Solve anagram with ASCII letters - 31 entries

ASCII created by TOIlet command

  • Best score: 48
  • Best player score: 48
  • Position: #4 / 14
  • Number of attempts: 1
Fill in the chess board - 722 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: #26 / 153
  • Number of attempts: 1
Learn to ask for :help - 457 entries

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

  • Best score: 19
  • Best player score: 21
  • Position: #20 / 105
  • Number of attempts: 4
Plotting some variables in python - 1371 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: #45 / 290
  • Number of attempts: 1
Transpose a python matrix - 663 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 23
  • Position: #16 / 116
  • Number of attempts: 1
Create a diamond comment - 266 entries

Encapsulate the text in a diamond pattern.

  • Best score: 27
  • Best player score: 27
  • Position: #10 / 62
  • Number of attempts: 1
Lowercase first characters - 413 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: #28 / 148
  • Number of attempts: 1
Make list of numbers from 1 to 30 more compact, but more confusing - 81 entries

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

  • Best score: 75
  • Best player score: 75
  • Position: #2 / 33
  • Number of attempts: 1
Migrated to Postgres! - 258 entries

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

  • Best score: 26
  • Best player score: 26
  • Position: #11 / 104
  • Number of attempts: 5
Increment number for every 10 lines - 180 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: 25
  • Position: #5 / 53
  • Number of attempts: 1
simple replacements - 1211 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 19
  • Position: #66 / 273
  • Number of attempts: 1
Inverting Lines - 1526 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #178 / 415
  • Number of attempts: 1
CSV to MD format - 329 entries

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 36
  • Position: #11 / 76
  • Number of attempts: 1
Modernise code - 1073 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 34
  • Position: #55 / 252
  • Number of attempts: 1
Extend shell script - 92 entries

Just add some more stuff

  • Best score: 37
  • Best player score: 37
  • Position: #6 / 39
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 6223 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 34
  • Position: #306 / 1532
  • Number of attempts: 2
Topvimgolf Score
Twitter:

Working through Vimgolf example till the top or second top score, to be able to see all of the solutions, and practice them.

entered into 34 challenges

contributed 0 challenges