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

Filter number combinations that don't add to 11 - 17 entries

Append the sum of each line to its end, alongside an equals sign, and remove any that do not sum to 11. The ordering of lines should stay the same. Note that the combinations are semi-arbitrary and not all 4-number combinations are present in the file.

  • Best score: 27
  • Best player score: 28
  • Position: #6 / 10
  • Number of attempts: 2
Tabbed Table to Python Array - 227 entries

Not payed by the hour? So make it fast ;-) The table contains the relative occurencies of bigrams (two consecutive letters) in 1/100,000 in the german language, copy-pasted from http://www.mathe.tu-freiberg.de/~hebisch/cafe/kryptographie/bigramme.html

  • Best score: 52
  • Best player score: 54
  • Position: #14 / 65
  • Number of attempts: 9
Reformat symbols in list - 806 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 27
  • Position: #84 / 180
  • Number of attempts: 5
delete swap - 830 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #180 / 279
  • Number of attempts: 1
swap number pairs - 1808 entries

Swap the numbers in a bunch of 2-element arrays.

  • Best score: 16
  • Best player score: 21
  • Position: #123 / 332
  • Number of attempts: 2
HS Final exam vimgolf - 782 entries

Change the initial file to a single line containing all names comma-separated with numbers inside parentheses.

  • Best score: 21
  • Best player score: 26
  • Position: #102 / 209
  • Number of attempts: 1
Rural Post - 4197 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 10
  • Position: #362 / 1035
  • Number of attempts: 5
Simple, Practical, and Common - 33074 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: 29
  • Position: #4783 / 7295
  • Number of attempts: 1
prepend * to every non-blank line - 6081 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 11
  • Position: #663 / 1485
  • Number of attempts: 2
One number per line - 18472 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1228 / 3807
  • Number of attempts: 2
Applying same text modification in several lines - 2779 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 12
  • Best player score: 14
  • Position: #356 / 823
  • Number of attempts: 2
Add semicolons - 10717 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1636 / 3020
  • Number of attempts: 1
remove lines containing the word "reader" - 3483 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #582 / 1128
  • Number of attempts: 3
Com(m)a Trouble - 3477 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 13
  • Position: #223 / 779
  • Number of attempts: 5
Box it - 7722 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #40 / 1842
  • Number of attempts: 5
Cool or not? - 765 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 16
  • Position: #90 / 218
  • Number of attempts: 1
Two pairs of cluster of letters creates word - 718 entries

Clean and group.

  • Best score: 17
  • Best player score: 24
  • Position: #132 / 169
  • Number of attempts: 4
ninja substitution - 1326 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 20
  • Position: #190 / 252
  • Number of attempts: 1
Bruce Woodward
Twitter:

entered into 18 challenges

contributed 0 challenges