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

Paste a column after a column - 2243 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 18
  • Position: #205 / 487
  • Number of attempts: 2
Filter number combinations that don't add to 11 - 376 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: #44 / 110
  • Number of attempts: 2
Tabbed Table to Python Array - 643 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: 50
  • Best player score: 54
  • Position: #38 / 166
  • Number of attempts: 9
HS exam question - 1497 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 54
  • Position: #68 / 393
  • Number of attempts: 4
Reformat symbols in list - 1466 entries

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

  • Best score: 24
  • Best player score: 27
  • Position: #137 / 322
  • Number of attempts: 5
Fizzbuzz - 506 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 47
  • Best player score: 97
  • Position: #123 / 157
  • Number of attempts: 1
Poorly indented Python comments - 1160 entries

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

  • Best score: 15
  • Best player score: 26
  • Position: #91 / 202
  • Number of attempts: 2
Many duplicates - 1252 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #199 / 411
  • Number of attempts: 2
delete swap - 1522 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #180 / 476
  • Number of attempts: 1
Fix the shell script! - 2338 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 27
  • Position: #102 / 540
  • Number of attempts: 6
Java to JavaScript - 257 entries

Let convert some simple Java file to JavaScript!

  • Best score: 59
  • Best player score: 67
  • Position: #22 / 67
  • Number of attempts: 4
Contribute to keyboard mashing - 839 entries

Speak in tongues

  • Best score: 17
  • Best player score: 24
  • Position: #242 / 256
  • Number of attempts: 1
swap number pairs - 2011 entries

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

  • Best score: 16
  • Best player score: 21
  • Position: #139 / 370
  • Number of attempts: 2
HS Final exam vimgolf - 864 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: #113 / 227
  • Number of attempts: 1
Rural Post - 4362 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #373 / 1071
  • Number of attempts: 5
Simple, Practical, and Common - 33385 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: #4831 / 7364
  • Number of attempts: 1
prepend * to every non-blank line - 6208 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #677 / 1517
  • Number of attempts: 2
One number per line - 18616 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1241 / 3842
  • Number of attempts: 2
Applying same text modification in several lines - 2845 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #366 / 840
  • Number of attempts: 2
Add semicolons - 10792 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1644 / 3044
  • Number of attempts: 1
remove lines containing the word "reader" - 3537 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #589 / 1144
  • Number of attempts: 3
Com(m)a Trouble - 3668 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #234 / 826
  • Number of attempts: 5
Box it - 7827 entries

Create a box around a line.

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

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 16
  • Position: #91 / 226
  • Number of attempts: 1
Two pairs of cluster of letters creates word - 735 entries

Clean and group.

  • Best score: 17
  • Best player score: 24
  • Position: #136 / 174
  • Number of attempts: 4
ninja substitution - 1372 entries

How can you reuse a previous substitution ?

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

entered into 26 challenges

contributed 0 challenges