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 - 248 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: #12 / 56
  • Number of attempts: 5
Learn to ask for :help - 228 entries

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

  • Best score: 19
  • Best player score: 25
  • Position: #22 / 53
  • Number of attempts: 5
Plotting some variables in python - 652 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 / 131
  • Number of attempts: 7
Transpose a python matrix - 356 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 69
  • Position: #55 / 71
  • Number of attempts: 1
Create a diamond comment - 160 entries

Encapsulate the text in a diamond pattern.

  • Best score: 27
  • Best player score: 95
  • Position: #36 / 41
  • Number of attempts: 1
Lowercase first characters - 214 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: #58 / 79
  • Number of attempts: 1
simple replacements - 685 entries

The goal is to see the replacement commands in action.

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

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

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

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 89
  • Position: #37 / 49
  • Number of attempts: 1
Generate a very basic Python constructor - 188 entries

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

  • Best score: 38
  • Best player score: 44
  • Position: #21 / 50
  • Number of attempts: 4
RUST Cargo.toml version to last - 190 entries

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

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

Simple challenge for frequent action while programming.

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

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 46
  • Position: #98 / 154
  • Number of attempts: 2
Enumerate Bullets - 142 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 / 37
  • Number of attempts: 5
swap number pairs - 1302 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #47 / 246
  • Number of attempts: 4
HS Final exam vimgolf - 578 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: #43 / 156
  • Number of attempts: 9
Extend shell script - 66 entries

Just add some more stuff

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

Just add another alias to each worker

  • Best score: 24
  • Best player score: 28
  • Position: #33 / 50
  • Number of attempts: 2
Python: Def to Lambda - 221 entries

LAMBDA!!!

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

Turn the x to a +

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

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

  • Best score: 9
  • Best player score: 17
  • Position: #670 / 940
  • Number of attempts: 1
Satisfy the go linter - 1625 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: #258 / 334
  • Number of attempts: 6
xrandr outputs and dashes - 572 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 / 185
  • Number of attempts: 4
Yo To Hello - 983 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #244 / 454
  • Number of attempts: 3
Replace pattern with 1, 2, 3, ... on each line - 954 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: #103 / 193
  • Number of attempts: 5
Simple, Practical, and Common - 32781 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 / 7242
  • Number of attempts: 3
Get mail address from outlook format - 560 entries

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

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

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

  • Best score: 10
  • Best player score: 11
  • Position: #625 / 1434
  • Number of attempts: 3
One number per line - 18295 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 23
  • Position: #3042 / 3770
  • Number of attempts: 4
Quote modules - 985 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 23
  • Position: #83 / 252
  • Number of attempts: 5
Applying same text modification in several lines - 2713 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #236 / 807
  • Number of attempts: 3
SCREAMING_SNAKE_CASE to Title Case - 1089 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: #92 / 227
  • Number of attempts: 5
Add semicolons - 10467 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1567 / 2966
  • Number of attempts: 3
Bad Copy Syntax - 1904 entries

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

  • Best score: 18
  • Best player score: 19
  • Position: #196 / 485
  • Number of attempts: 7
remove lines containing the word "reader" - 3436 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #791 / 1113
  • Number of attempts: 3
Com(m)a Trouble - 3308 entries

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

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

Create a box around a line.

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

AaAaAaA

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

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3082 / 4093
  • Number of attempts: 1
Basic renumbering - 5408 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 12
  • Position: #277 / 1221
  • Number of attempts: 5
ninja substitution - 1278 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 14
  • Position: #70 / 245
  • Number of attempts: 5
One to Ten - 2072 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 / 635
  • Number of attempts: 1
citizen_hacks_2019_challenge5 - 113 entries

For the Citizen Hacks 2019 Vim competition.

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

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

  • Best score: 24
  • Best player score: 27
  • Position: #173 / 466
  • Number of attempts: 7
Increment each number - 946 entries

Increment each number individually by one

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

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

  • Best score: 18
  • Best player score: 39
  • Position: #265 / 275
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10515 entries

A HAPPY NEW YEAR 2014 !

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

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1812 / 3906
  • Number of attempts: 4
Alphabet soup - 354 entries

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

  • Best score: 25
  • Best player score: 26
  • Position: #42 / 84
  • 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 - 11449 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 / 3362
  • Number of attempts: 4
AAbraxas
Twitter:

entered into 51 challenges

contributed 0 challenges