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

Changing around text with citations - 29 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 28
  • Position: #5 / 12
  • Number of attempts: 2
Poorly indented Python comments - 459 entries

Fix the alignment of some Python comments as quickly as possible.

  • Best score: 15
  • Best player score: 15
  • Position: #12 / 85
  • Number of attempts: 15
Many duplicates - 292 entries

Quick and easy

  • Best score: 2
  • Best player score: 7
  • Position: #6 / 107
  • Number of attempts: 2
2 quick changes and a numbered list - 190 entries

The ascii will not be lost, but rather numbered in 4 digit blocks with leading zeros.

  • Best score: 37
  • Best player score: 37
  • Position: #8 / 52
  • Number of attempts: 9
delete swap - 357 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #68 / 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: 134
  • Position: #117 / 127
  • Number of attempts: 2
Fix the shell script! - 987 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 57
  • Position: #220 / 253
  • Number of attempts: 1
Visual block training - 446 entries

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

  • Best score: 18
  • Best player score: 18
  • Position: #16 / 91
  • Number of attempts: 15
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: 10
  • Position: #23 / 333
  • Number of attempts: 7
hello-world-vimgolf - 1534 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #195 / 438
  • Number of attempts: 15
Fill in the chess board - 543 entries

Fill in the name of each square using its file (a-h) and rank (1-8).

  • Best score: 19
  • Best player score: 46
  • Position: #84 / 113
  • Number of attempts: 1
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: 46
  • Position: #96 / 128
  • Number of attempts: 1
C to python code snippet - 62 entries

C code can be easily translated into Python code. However, the difference in syntax can make this process tedious and time-consuming. Can Vim help you here?

  • Best score: 48
  • Best player score: 80
  • Position: #17 / 21
  • Number of attempts: 1
Python: Def to Lambda - 372 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 19
  • Position: #71 / 124
  • Number of attempts: 4
Remember FizzBuzz? - 589 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 39
  • Position: #9 / 166
  • Number of attempts: 17

Contributed Challenges

Changing around text with citations - 29 entries

Based off of something I saw on reddit

Хью Джолли
Twitter:

entered into 15 challenges

contributed 1 challenges