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

delete swap - 357 entries

delete all swap

  • Best score: 5
  • Best player score: 6
  • Position: #82 / 124
  • Number of attempts: 1
Generate a very basic Python constructor (fixed) - 545 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 54
  • Position: #96 / 127
  • Number of attempts: 3
Fix the shell script! - 987 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 42
  • Position: #172 / 253
  • Number of attempts: 4
Visual block training - 446 entries

You see the input. You see the output. Go.

  • Best score: 18
  • Best player score: 40
  • Position: #53 / 91
  • Number of attempts: 2
Put a newline after every 10 lines in vim - 944 entries

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

  • Best score: 10
  • Best player score: 14
  • Position: #264 / 333
  • Number of attempts: 1
hello-world-vimgolf - 1534 entries

Simple number generation

  • Best score: 10
  • Best player score: 12
  • Position: #272 / 438
  • Number of attempts: 1
Plotting some variables in python - 1172 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: 51
  • Position: #143 / 247
  • Number of attempts: 2
Lowercase first characters - 359 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: 57
  • Position: #117 / 128
  • Number of attempts: 2
Python dataclasses - 650 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 32
  • Position: #137 / 169
  • Number of attempts: 5
Mr. Hacker - 59 entries

Elvin is hacker. He has piece of users database from some social net site. Recently he installed Vim, and he wants to convert CSV DB to specific format `key=value' where `key' is login and `value' is password, but password in DB is encrypted in ROT13. Help him.

  • Best score: 19
  • Best player score: 25
  • Position: #25 / 25
  • Number of attempts: 1
Python: Def to Lambda - 372 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 20
  • Position: #86 / 124
  • Number of attempts: 7
One number per line - 18378 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1981 / 3788
  • Number of attempts: 1
Prefixes and suffixes - 567 entries

Generate all prefixes of "vimchallenge", then all suffixes.

  • Best score: 17
  • Best player score: 32
  • Position: #163 / 185
  • Number of attempts: 3
imports alignment (python) - 640 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 42
  • Position: #177 / 191
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 6015 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 49
  • Position: #1228 / 1482
  • Number of attempts: 3
タケ
Twitter:

山口出身/神戸大/はねっこ(V)o¥o(V)

entered into 15 challenges

contributed 0 challenges