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

Reformat symbols in list - 1466 entries

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

  • Best score: 24
  • Best player score: 45
  • Position: #277 / 322
  • Number of attempts: 1
Fix the shell script! - 2320 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 33
  • Position: #273 / 539
  • Number of attempts: 3
Put a newline after every 10 lines in vim - 1574 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #137 / 523
  • Number of attempts: 3
hello-world-vimgolf - 2346 entries

Simple number generation

  • Best score: 10
  • Best player score: 11
  • Position: #378 / 663
  • Number of attempts: 5
Plotting some variables in python - 1557 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: 49
  • Position: #192 / 332
  • Number of attempts: 1
simple replacements - 1654 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 33
  • Position: #341 / 368
  • Number of attempts: 4
Inverting Lines - 1830 entries

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

  • Best score: 10
  • Best player score: 12
  • Position: #287 / 496
  • Number of attempts: 6
Python dataclasses - 1104 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 19
  • Position: #47 / 277
  • Number of attempts: 2
Modernise code - 1333 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 37
  • Position: #108 / 307
  • Number of attempts: 7
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: 35
  • Position: #168 / 227
  • Number of attempts: 1
Swap values - 4543 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #840 / 1257
  • Number of attempts: 1
One number per line - 18616 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Position: #2036 / 3842
  • Number of attempts: 2
Split line with dots - 2125 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 22
  • Position: #447 / 630
  • Number of attempts: 1
Box it - 7827 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 30
  • Position: #1352 / 1864
  • Number of attempts: 3
Copy three lines - 2840 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 16
  • Position: #252 / 635
  • Number of attempts: 2
Just the middle - 11358 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2227 / 4163
  • Number of attempts: 4
C Reformatting - 688 entries

You may use Visual mode... or not. #uppercase

  • Best score: 30
  • Best player score: 44
  • Position: #70 / 161
  • Number of attempts: 2
A grid of punctuation - 124 entries

Create a checkerboard of = and - in an 80×24 grid!

  • Best score: 16
  • Best player score: 16
  • Position: #4 / 57
  • Number of attempts: 3
Generate a list of numbers - 283 entries

Please generate list of numbers from 1 to 20.

  • Best score: 14
  • Best player score: 15
  • Position: #83 / 136
  • Number of attempts: 2
Sarang Khim
Twitter:

entered into 19 challenges

contributed 0 challenges