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

Find fix point of cos - 1408 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 114
  • Position: #411 / 418
  • Number of attempts: 1
Many duplicates - 1451 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #243 / 471
  • Number of attempts: 9
delete swap - 1788 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #258 / 557
  • Number of attempts: 10
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: 12
  • Position: #238 / 558
  • Number of attempts: 2
Simple, Practical, and Common - 33742 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 22
  • Position: #1926 / 7447
  • Number of attempts: 10
One number per line - 18776 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #983 / 3875
  • Number of attempts: 10
Add semicolons - 10887 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1067 / 3074
  • Number of attempts: 7
Bad Copy Syntax - 2044 entries

Copy should be from right to left, but sometimes you type it wrong.

  • Best score: 18
  • Best player score: 62
  • Position: #520 / 530
  • Number of attempts: 2
remove lines containing the word "reader" - 3604 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #290 / 1169
  • Number of attempts: 5
Box it - 7916 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #199 / 1881
  • Number of attempts: 12
Line under headers - 2059 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 24
  • Best player score: 27
  • Position: #118 / 507
  • Number of attempts: 8
abcd > a b c d - 297 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 17
  • Position: #219 / 226
  • Number of attempts: 1
Chucking wood - 135 entries

An exercise in compressing repetitive text. For this challenge, any entry that uses keys outside the main row (such as arrow keys, Home, End, Delete, etc.) will be removed. (Esc is OK, though you should be using C-[ anyway.)

  • Best score: 51
  • Best player score: 74
  • Position: #48 / 50
  • Number of attempts: 1
Let's play some Ivmgolf - 1122 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #338 / 446
  • Number of attempts: 4
Stephen Westhead
Twitter:

entered into 14 challenges

contributed 0 challenges