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

Plotting some variables in python - 280 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: #3 / 61
  • Number of attempts: 7
Transpose a python matrix - 161 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 69
  • Position: #30 / 36
  • Number of attempts: 1
Create a diamond comment - 75 entries

Encapsulate the text in a diamond pattern.

  • Best score: 27
  • Best player score: 95
  • Position: #20 / 24
  • Number of attempts: 1
Lowercase first characters - 144 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: 44
  • Position: #37 / 50
  • Number of attempts: 1
simple replacements - 553 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 19
  • Position: #8 / 129
  • Number of attempts: 6
Inverting Lines - 837 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #55 / 233
  • Number of attempts: 5
CSV to MD format - 163 entries

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 89
  • Position: #33 / 43
  • Number of attempts: 1
Generate a very basic Python constructor - 166 entries

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

  • Best score: 30
  • Best player score: 44
  • Position: #19 / 42
  • Number of attempts: 4
RUST Cargo.toml version to last - 168 entries

RUST Cargo.toml version to last. rusty practice on vimgolf

  • Best score: 16
  • Best player score: 18
  • Position: #37 / 53
  • Number of attempts: 5
Making 3 line function a one liner. - 63 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #20 / 50
  • Number of attempts: 1
Modernise code - 590 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 46
  • Position: #89 / 138
  • Number of attempts: 2
swap number pairs - 1194 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #41 / 224
  • Number of attempts: 4
HS Final exam vimgolf - 539 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: #41 / 147
  • Number of attempts: 9
Extend shell script - 62 entries

Just add some more stuff

  • Best score: 37
  • Best player score: 53
  • Position: #15 / 23
  • Number of attempts: 2
Easy modification of ssh config - 144 entries

Just add another alias to each worker

  • Best score: 24
  • Best player score: 28
  • Position: #29 / 44
  • Number of attempts: 2
Python: Def to Lambda - 195 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 19
  • Position: #29 / 68
  • Number of attempts: 2
Turn the x - 151 entries

Turn the x to a +

  • Best score: 19
  • Best player score: 19
  • Position: #6 / 43
  • Number of attempts: 8
Rural Post - 3760 entries

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

  • Best score: 9
  • Best player score: 17
  • Position: #660 / 929
  • Number of attempts: 1
Satisfy the go linter - 1556 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 31
  • Position: #248 / 322
  • Number of attempts: 6
xrandr outputs and dashes - 528 entries

uh oh, different video drivers identify display outputs with more dashes. Quick, need to change this xrandr script!

  • Best score: 12
  • Best player score: 12
  • Position: #88 / 175
  • Number of attempts: 4
Yo To Hello - 917 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 10
  • Position: #245 / 432
  • Number of attempts: 3
Replace pattern with 1, 2, 3, ... on each line - 914 entries

For each line replace a search pattern (in this case $) with numbers starting at 1 and then increasing by 1 for each replaced match. a$b$c$ -> a0b1c2

  • Best score: 21
  • Best player score: 27
  • Position: #100 / 187
  • Number of attempts: 5
Simple, Practical, and Common - 32752 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 22
  • Position: #2265 / 7238
  • Number of attempts: 3
Get mail address from outlook format - 549 entries

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

  • Best score: 15
  • Best player score: 15
  • Position: #56 / 170
  • Number of attempts: 3
prepend * to every non-blank line - 5800 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #622 / 1427
  • Number of attempts: 3
One number per line - 18261 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 23
  • Position: #3038 / 3766
  • Number of attempts: 4
Quote modules - 981 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 23
  • Position: #82 / 250
  • Number of attempts: 5
Applying same text modification in several lines - 2704 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 12
  • Best player score: 13
  • Position: #235 / 804
  • Number of attempts: 3
SCREAMING_SNAKE_CASE to Title Case - 1070 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: 20
  • Position: #91 / 224
  • Number of attempts: 5
Add semicolons - 10449 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1565 / 2959
  • Number of attempts: 3
Bad Copy Syntax - 1883 entries

Copy should be from right to left, but sometimes you type it wrong.

  • Best score: 18
  • Best player score: 19
  • Position: #195 / 479
  • Number of attempts: 7
remove lines containing the word "reader" - 3426 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #790 / 1110
  • Number of attempts: 3
Com(m)a Trouble - 3287 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 12
  • Position: #128 / 743
  • Number of attempts: 7
Box it - 7637 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #392 / 1824
  • Number of attempts: 8
Every other line - 2781 entries

AaAaAaA

  • Best score: 12
  • Best player score: 13
  • Position: #251 / 677
  • Number of attempts: 4
Just the middle - 11079 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3080 / 4090
  • Number of attempts: 1
Basic renumbering - 5395 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 12
  • Position: #276 / 1219
  • Number of attempts: 5
ninja substitution - 1254 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 14
  • Position: #70 / 240
  • Number of attempts: 5
One to Ten - 2063 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: #309 / 631
  • Number of attempts: 1
citizen_hacks_2019_challenge5 - 109 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 6
  • Position: #35 / 57
  • Number of attempts: 1
Line under headers - 1853 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 24
  • Best player score: 27
  • Position: #171 / 460
  • Number of attempts: 7
Increment each number - 940 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 19
  • Position: #111 / 231
  • Number of attempts: 5
Fix the XML - 934 entries

The challenge consists in having a valid xml from an incomplete source.

  • Best score: 18
  • Best player score: 39
  • Position: #263 / 273
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10511 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2443 / 3628
  • Number of attempts: 2
Words in parens - 12682 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1811 / 3905
  • Number of attempts: 4
Alphabet soup - 337 entries

Create a column of all alphabet characters organized in a funky way

  • Best score: 25
  • Best player score: 26
  • Position: #41 / 80
  • Number of attempts: 7
Flip the chessboard - 67 entries

White's turn is over. Flip the board to black's perspective. I added coordinates to frustrate you.

  • Best score: 18
  • Best player score: 36
  • Position: #23 / 28
  • Number of attempts: 1
Simple text editing with Vim - 11391 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 13
  • Position: #643 / 3347
  • Number of attempts: 4
AAbraxas
Twitter:

entered into 48 challenges

contributed 0 challenges