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 - 1199 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: #356 / 363
  • Number of attempts: 1
Many duplicates - 1333 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #239 / 436
  • Number of attempts: 9
delete swap - 1639 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #258 / 512
  • Number of attempts: 10
Put a newline after every 10 lines in vim - 1646 entries

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

  • Best score: 10
  • Best player score: 12
  • Position: #237 / 548
  • Number of attempts: 2
Simple, Practical, and Common - 33483 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 / 7384
  • Number of attempts: 10
One number per line - 18672 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #979 / 3852
  • Number of attempts: 10
Add semicolons - 10831 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1063 / 3055
  • Number of attempts: 7
Bad Copy Syntax - 2008 entries

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

  • Best score: 18
  • Best player score: 62
  • Position: #508 / 518
  • Number of attempts: 2
remove lines containing the word "reader" - 3556 entries

easy stuff

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

Create a box around a line.

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

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

  • Best score: 24
  • Best player score: 27
  • Position: #117 / 498
  • Number of attempts: 8
abcd > a b c d - 282 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 17
  • Position: #213 / 220
  • Number of attempts: 1
Chucking wood - 111 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: #45 / 47
  • Number of attempts: 1
Let's play some Ivmgolf - 1096 entries

Oops, I spelled that wrong.

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

entered into 14 challenges

contributed 0 challenges