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

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: 20
  • Position: #37 / 173
  • Number of attempts: 5
Learn to ask for :help - 510 entries

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

  • Best score: 19
  • Best player score: 25
  • Position: #39 / 118
  • Number of attempts: 5
Plotting some variables in python - 1543 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 / 329
  • Number of attempts: 7
Transpose a python matrix - 823 entries

Rotate the matrix in 90 degrees.

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

Encapsulate the text in a diamond pattern.

  • Best score: 27
  • Best player score: 95
  • Position: #62 / 70
  • Number of attempts: 1
Lowercase first characters - 458 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: #115 / 172
  • Number of attempts: 1
simple replacements - 1536 entries

The goal is to see the replacement commands in action.

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

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

  • Best score: 10
  • Best player score: 10
  • Position: #55 / 486
  • Number of attempts: 7
CSV to MD format - 381 entries

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 89
  • Position: #61 / 89
  • Number of attempts: 1
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: 44
  • Position: #30 / 94
  • Number of attempts: 4
RUST Cargo.toml version to last - 320 entries

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

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

Simple challenge for frequent action while programming.

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

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 46
  • Position: #184 / 306
  • Number of attempts: 2
Enumerate Bullets - 292 entries

We will need to refer to the bullet points in our document explicitly later, so we need to assign them some ID's!

  • Best score: 20
  • Best player score: 20
  • Position: #18 / 80
  • 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: 17
  • Position: #65 / 369
  • Number of attempts: 4
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: #57 / 227
  • Number of attempts: 9
Extend shell script - 103 entries

Just add some more stuff

  • Best score: 37
  • Best player score: 53
  • Position: #22 / 42
  • Number of attempts: 2
Easy modification of ssh config - 335 entries

Just add another alias to each worker

  • Best score: 24
  • Best player score: 28
  • Position: #56 / 104
  • Number of attempts: 2
Python: Def to Lambda - 423 entries

LAMBDA!!!

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

Turn the x to a +

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

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

  • Best score: 9
  • Best player score: 17
  • Position: #769 / 1066
  • Number of attempts: 1
Satisfy the go linter - 2169 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: #341 / 434
  • Number of attempts: 6
xrandr outputs and dashes - 652 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 / 213
  • Number of attempts: 4
Yo To Hello - 1107 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #244 / 512
  • Number of attempts: 3
Replace pattern with 1, 2, 3, ... on each line - 1089 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: #112 / 222
  • Number of attempts: 5
Simple, Practical, and Common - 33353 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: #2264 / 7358
  • 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: 15
  • Position: #56 / 196
  • Number of attempts: 3
prepend * to every non-blank line - 6201 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #654 / 1514
  • Number of attempts: 3
One number per line - 18613 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 23
  • Position: #3093 / 3841
  • Number of attempts: 4
Quote modules - 1046 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 23
  • Position: #91 / 272
  • Number of attempts: 5
Applying same text modification in several lines - 2845 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #252 / 840
  • Number of attempts: 3
SCREAMING_SNAKE_CASE to Title Case - 1177 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: #98 / 243
  • Number of attempts: 5
Add semicolons - 10785 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1597 / 3042
  • Number of attempts: 3
Bad Copy Syntax - 1999 entries

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

  • Best score: 18
  • Best player score: 19
  • Position: #202 / 514
  • Number of attempts: 7
remove lines containing the word "reader" - 3528 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #807 / 1142
  • Number of attempts: 3
Com(m)a Trouble - 3654 entries

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

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

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #391 / 1861
  • Number of attempts: 8
Every other line - 2886 entries

AaAaAaA

  • Best score: 12
  • Best player score: 13
  • Position: #256 / 700
  • Number of attempts: 4
Just the middle - 11346 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3111 / 4160
  • Number of attempts: 1
Basic renumbering - 5584 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 12
  • Position: #296 / 1257
  • Number of attempts: 5
ninja substitution - 1372 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 14
  • Position: #70 / 261
  • Number of attempts: 5
One to Ten - 2159 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 / 660
  • Number of attempts: 1
citizen_hacks_2019_challenge5 - 137 entries

For the Citizen Hacks 2019 Vim competition.

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

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

  • Best score: 24
  • Best player score: 27
  • Position: #183 / 494
  • Number of attempts: 7
Increment each number - 977 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 19
  • Position: #116 / 242
  • Number of attempts: 5
Fix the XML - 996 entries

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

  • Best score: 18
  • Best player score: 39
  • Position: #271 / 284
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10616 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2466 / 3663
  • Number of attempts: 2
Words in parens - 12848 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1836 / 3943
  • Number of attempts: 4
Alphabet soup - 419 entries

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

  • Best score: 25
  • Best player score: 26
  • Position: #48 / 103
  • Number of attempts: 7
Flip the chessboard - 77 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: #25 / 29
  • Number of attempts: 1
Simple text editing with Vim - 12233 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 / 3567
  • Number of attempts: 4
AAbraxas
Twitter:

entered into 51 challenges

contributed 0 challenges