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

Based off of something I saw on reddit

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

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

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

Quick and easy

  • Best score: 7
  • Best player score: 7
  • Position: #5 / 387
  • Number of attempts: 2
2 quick changes and a numbered list - 573 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 / 138
  • Number of attempts: 9
delete swap - 1454 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #68 / 461
  • Number of attempts: 1
Generate a very basic Python constructor (fixed) - 1155 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: #231 / 243
  • Number of attempts: 2
Fix the shell script! - 2048 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 57
  • Position: #426 / 491
  • Number of attempts: 1
Visual block training - 949 entries

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

  • Best score: 17
  • Best player score: 18
  • Position: #24 / 174
  • Number of attempts: 15
Put a newline after every 10 lines in vim - 1550 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #23 / 517
  • Number of attempts: 7
hello-world-vimgolf - 2294 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #195 / 648
  • Number of attempts: 15
Fill in the chess board - 886 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: #123 / 173
  • Number of attempts: 1
Lowercase first characters - 455 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: #128 / 170
  • Number of attempts: 1
C to python code snippet - 78 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: #21 / 27
  • Number of attempts: 1
Python: Def to Lambda - 423 entries

LAMBDA!!!

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

Output FizzBuzz to 100. Start with nothing.

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

Contributed Challenges

Changing around text with citations - 302 entries

Based off of something I saw on reddit

Хью Джолли
Twitter:

entered into 15 challenges

contributed 1 challenges