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

Based off of something I saw on reddit

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

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

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

Quick and easy

  • Best score: 7
  • Best player score: 7
  • Position: #5 / 287
  • Number of attempts: 2
2 quick changes and a numbered list - 459 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 / 109
  • Number of attempts: 9
delete swap - 1095 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #68 / 356
  • Number of attempts: 1
Generate a very basic Python constructor (fixed) - 929 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: #197 / 209
  • Number of attempts: 2
Fix the shell script! - 1728 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 57
  • Position: #361 / 418
  • Number of attempts: 1
Visual block training - 780 entries

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

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

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

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

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #195 / 565
  • Number of attempts: 15
Fill in the chess board - 738 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: #112 / 156
  • Number of attempts: 1
Lowercase first characters - 421 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: #114 / 152
  • Number of attempts: 1
C to python code snippet - 70 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: #18 / 24
  • Number of attempts: 1
Python: Def to Lambda - 410 entries

LAMBDA!!!

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

Output FizzBuzz to 100. Start with nothing.

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

Contributed Challenges

Changing around text with citations - 204 entries

Based off of something I saw on reddit

Хью Джолли
Twitter:

entered into 15 challenges

contributed 1 challenges