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

Find fix point of cos - 1119 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 26
  • Position: #270 / 333
  • Number of attempts: 5
Surround the 'z' character with brackets, quotes, and print as formatted string. - 483 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 18
  • Position: #218 / 270
  • Number of attempts: 2
Paste a column after a column - 2246 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 24
  • Position: #332 / 486
  • Number of attempts: 2
Many duplicates - 1250 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #230 / 409
  • Number of attempts: 4
Put a newline after every 10 lines in vim - 1578 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #175 / 524
  • 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: 41
  • Position: #133 / 332
  • Number of attempts: 3
Inverting Lines - 1830 entries

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

  • Best score: 10
  • Best player score: 14
  • Position: #359 / 496
  • Number of attempts: 4
Python dataclasses - 1104 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 23
  • Position: #128 / 277
  • Number of attempts: 5
Modernise code - 1333 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 50
  • Position: #220 / 307
  • Number of attempts: 2
Satisfy the go linter - 2328 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: 28
  • Position: #344 / 456
  • Number of attempts: 2
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: #140 / 213
  • Number of attempts: 3
Yo To Hello - 1112 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #385 / 516
  • Number of attempts: 1
Hogwarts Email Sorting - 877 entries

Given a list of emails, get the students full name and their associated house.

  • Best score: 20
  • Best player score: 21
  • Position: #102 / 254
  • Number of attempts: 5
Add semicolons - 10792 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 12
  • Position: #1939 / 3044
  • Number of attempts: 3
Append semicolon after expressions - 1005 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 11
  • Position: #138 / 403
  • Number of attempts: 4
Shebangs for all - 1912 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 13
  • Position: #202 / 500
  • Number of attempts: 3
مرجان
Twitter2:

New York Herald Tribune, New York Herald Tribune

entered into 16 challenges

contributed 0 challenges