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

Based off of something I saw on reddit

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

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

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

Quick and easy

  • Best score: 7
  • Best player score: 7
  • Position: #5 / 242
  • Number of attempts: 2
2 quick changes and a numbered list - 384 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 / 94
  • Number of attempts: 9
delete swap - 830 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #68 / 279
  • Number of attempts: 1
Generate a very basic Python constructor (fixed) - 879 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: #181 / 193
  • Number of attempts: 2
Fix the shell script! - 1514 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 57
  • Position: #322 / 373
  • Number of attempts: 1
Visual block training - 692 entries

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

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

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

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

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #195 / 526
  • Number of attempts: 15
Fill in the chess board - 701 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: #108 / 148
  • Number of attempts: 1
Lowercase first characters - 406 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: #107 / 145
  • 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 - 396 entries

LAMBDA!!!

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

Output FizzBuzz to 100. Start with nothing.

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

Contributed Challenges

Changing around text with citations - 181 entries

Based off of something I saw on reddit

Хью Джолли
Twitter:

entered into 15 challenges

contributed 1 challenges