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 - 906 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 96
  • Position: #189 / 247
  • Number of attempts: 1
Reformat symbols in list - 806 entries

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

  • Best score: 24
  • Best player score: 29
  • Position: #89 / 180
  • Number of attempts: 3
Fizzbuzz - 270 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 47
  • Best player score: 95
  • Position: #65 / 90
  • Number of attempts: 1
Substraction (bis) - 311 entries

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

  • Best score: 22
  • Best player score: 332
  • Position: #69 / 69
  • Number of attempts: 1
Changing around text with citations - 181 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 49
  • Position: #46 / 53
  • Number of attempts: 3
Many duplicates - 719 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #107 / 242
  • Number of attempts: 5
delete swap - 830 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #87 / 279
  • Number of attempts: 2
Generate a very basic Python constructor (fixed) - 879 entries

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

  • Best score: 29
  • Best player score: 53
  • Position: #140 / 193
  • Number of attempts: 1
Fix the shell script! - 1514 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 38
  • Position: #229 / 373
  • Number of attempts: 1
Visual block training - 692 entries

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

  • Best score: 17
  • Best player score: 59
  • Position: #107 / 132
  • Number of attempts: 2
Put a newline after every 10 lines in vim - 1228 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #205 / 423
  • Number of attempts: 3
hello-world-vimgolf - 1850 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #158 / 526
  • Number of attempts: 8
Fill in the chess board - 701 entries

Fill in the name of each square using its file (a-h) and rank (1-8).

  • Best score: 19
  • Best player score: 150
  • Position: #143 / 148
  • Number of attempts: 1
Plotting some variables in python - 1320 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: 59
  • Position: #203 / 278
  • Number of attempts: 1
Create a diamond comment - 265 entries

Encapsulate the text in a diamond pattern.

  • Best score: 27
  • Best player score: 184
  • Position: #57 / 61
  • Number of attempts: 1
Lowercase first characters - 406 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: 48
  • Position: #116 / 145
  • Number of attempts: 2
Inverting Lines - 1472 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #142 / 400
  • Number of attempts: 4
swap number pairs - 1808 entries

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

  • Best score: 16
  • Best player score: 30
  • Position: #210 / 332
  • Number of attempts: 4
HS Final exam vimgolf - 782 entries

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

  • Best score: 21
  • Best player score: 30
  • Position: #126 / 209
  • Number of attempts: 3
Rural Post - 4197 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 21
  • Position: #813 / 1035
  • Number of attempts: 2
Multiline to Single Line - 554 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 5
  • Position: #171 / 249
  • Number of attempts: 3
prepend * to every non-blank line - 6081 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 16
  • Position: #1047 / 1485
  • Number of attempts: 2
Add semicolons - 10717 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1406 / 3020
  • Number of attempts: 6
Box it - 7722 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 41
  • Position: #1686 / 1842
  • Number of attempts: 3
Just the middle - 11284 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2642 / 4140
  • Number of attempts: 1
Missing Library and a Typo - 838 entries

I forgot to add a c library, please add it for me. Also I'm bad at typing so fix my typo too.

  • Best score: 15
  • Best player score: 22
  • Position: #171 / 206
  • Number of attempts: 2
lamb had a little Mary - 569 entries

"Mary" and "lamb" are swapped. Unswap them. Fast as you can.

  • Best score: 16
  • Best player score: 38
  • Position: #118 / 159
  • Number of attempts: 2
Nougatine Naja
Twitter:

entered into 27 challenges

contributed 0 challenges