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 - 1788 entries

delete all swap

  • Best score: 5
  • Best player score: 6
  • Position: #389 / 557
  • Number of attempts: 1
Generate a very basic Python constructor (fixed) - 1253 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: #204 / 271
  • Number of attempts: 3
Fix the shell script! - 2596 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 42
  • Position: #427 / 603
  • Number of attempts: 4
Visual block training - 1075 entries

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

  • Best score: 17
  • Best player score: 40
  • Position: #118 / 205
  • Number of attempts: 2
Put a newline after every 10 lines in vim - 1660 entries

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

  • Best score: 10
  • Best player score: 14
  • Position: #436 / 558
  • Number of attempts: 1
hello-world-vimgolf - 2501 entries

Simple number generation

  • Best score: 10
  • Best player score: 12
  • Position: #441 / 709
  • Number of attempts: 1
Plotting some variables in python - 1661 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: #216 / 348
  • Number of attempts: 2
Lowercase first characters - 487 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: #165 / 183
  • Number of attempts: 2
Python dataclasses - 1192 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 32
  • Position: #231 / 295
  • Number of attempts: 5
Mr. Hacker - 89 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: #34 / 35
  • Number of attempts: 1
Python: Def to Lambda - 455 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 20
  • Position: #105 / 156
  • Number of attempts: 7
One number per line - 18776 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #2015 / 3875
  • Number of attempts: 1
Prefixes and suffixes - 635 entries

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

  • Best score: 17
  • Best player score: 32
  • Position: #169 / 201
  • Number of attempts: 3
imports alignment (python) - 700 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 42
  • Position: #182 / 198
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 7173 entries

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

  • Best score: 28
  • Best player score: 49
  • Position: #1377 / 1761
  • Number of attempts: 3
タケ
Twitter:

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

entered into 15 challenges

contributed 0 challenges