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

-a-b-c- - 3004 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 4
Paragraph sort - 356 entries

My large herbivorous mammals, Vim commands, and POSIX utilities need to be sorted separately.

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 13
Add semicolons - 9365 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 1
Swap values inside brackets - 2322 entries

Easy challenge.

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 4
Number Sort - 268 entries

sort the list of newline-separated numbers incrementally. Numbers are in the range 1 to 1000, with 500 missing

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 3
Chinese Multiplication Table - 70 entries

Print a Chinese multiplication table in Vim. In China, every kid is asked to memorize this table. And thanks to the mono-syllabism of Chinese characters, it is not that hard. Printing the multiplication table is also a good exercise for programming beginners. For-loop, escaped characters, etc... There should be some special ways to print it in Vim.

  • Best score: 39
  • Best player score: 39
  • Number of attempts: 20
Rural Post - 2135 entries

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

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 4
prepend * to every non-blank line - 4897 entries

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

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 4
Vice versa - 7165 entries

Little role switching.

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 5
A HAPPY NEW YEAR 2014 ! - 10344 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 1
Add string initializers to an enum - 682 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 22
  • Number of attempts: 4
Yo To Hello - 711 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 1
Flip the bit - 92 entries

Change the specific 0 to a 1.

  • Best score: 8
  • Best player score: 8
  • Number of attempts: 2
switch variable - 4778 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 1
Line under headers - 1681 entries

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

  • Best score: 24
  • Best player score: 24
  • Number of attempts: 9
Applying same text modification in several lines - 2591 entries

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

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 2
Team names - 1699 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 16
  • Number of attempts: 4
Just the middle - 10835 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 3
V to the i - 4508 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 2
One to Ten - 1901 entries

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 4
remove lines containing the word "reader" - 3223 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 2
Quote modules - 842 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 22
  • Number of attempts: 9
Increment, increment, increment.... - 527 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Number of attempts: 2
Simple text editing with Vim - 11200 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 2
Com(m)a Trouble - 3041 entries

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

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 5
citizen_hacks_2019_challenge5 - 94 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 7
  • Number of attempts: 2
Split line with dots - 2043 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 17
  • Number of attempts: 3
Box it - 7128 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 8
Delete to the end of the current line - 692 entries

Delete to the end of the current line, but keep the character under the cursor.

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 2
Satisfy the go linter - 1094 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 21
  • Number of attempts: 9
Simple, Practical, and Common - 31763 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
  • Number of attempts: 9
One number per line - 17488 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 7
Swap values - 4300 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 2
Replace pattern with 1, 2, 3, ... on each line - 703 entries

For each line replace a search pattern (in this case $) with numbers starting at 1 and then increasing by 1 for each replaced match. a$b$c$ -> a0b1c2

  • Best score: 21
  • Best player score: 22
  • Number of attempts: 11
Two pairs of cluster of letters creates word - 661 entries

Clean and group.

  • Best score: 17
  • Best player score: 18
  • Number of attempts: 10
Hello ${world} - 269 entries

Migrate a JavaScript String from concatenation to ES6 interpolation.

  • Best score: 24
  • Best player score: 25
  • Number of attempts: 13
I forgot quotes - 15150 entries

Oops.

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 5
Order and join - 813 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 4
replace 2nd column blanks with values in same column if blank - 200 entries

Where ,SOMELOGB and ,SOMELOGC replaces each /r carriage return if 2nd column is blank. The replace only happens if 2nd column is blank though and should replace up to the non blank row.

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 3
Double and switch - 36 entries

Aaaanother case switcher

  • Best score: 18
  • Best player score: 20
  • Number of attempts: 1
Increment each number - 853 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 21
  • Number of attempts: 1
Copy three lines - 2621 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 6
Alphabet soup - 228 entries

Create a column of all alphabet characters organized in a funky way

  • Best score: 25
  • Best player score: 26
  • Number of attempts: 7
chocolate
Twitter:

entered into 43 challenges

contributed 0 challenges