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 - 2537 entries

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

  • Best score: 14
  • Best player score: 14
  • Position: #85 / 553
  • Number of attempts: 9
Visual block training - 1070 entries

You see the input. You see the output. Go.

  • Best score: 17
  • Best player score: 18
  • Position: #41 / 204
  • Number of attempts: 10
Put a newline after every 10 lines in vim - 1658 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #197 / 557
  • Number of attempts: 4
Transpose a python matrix - 873 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 33
  • Position: #51 / 138
  • Number of attempts: 15
Enumerate Bullets - 323 entries

We will need to refer to the bullet points in our document explicitly later, so we need to assign them some ID's!

  • Best score: 20
  • Best player score: 21
  • Position: #27 / 87
  • Number of attempts: 3
swap number pairs - 2104 entries

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

  • Best score: 16
  • Best player score: 18
  • Position: #135 / 381
  • Number of attempts: 11
ssh config skills - 258 entries

Parse output from `kuebctl get no -o wide` into an .ssh/config file!

  • Best score: 41
  • Best player score: 58
  • Position: #35 / 66
  • Number of attempts: 2
Swap values - 4622 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #525 / 1269
  • Number of attempts: 5
prepend * to every non-blank line - 6318 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #757 / 1539
  • Number of attempts: 6
Add semicolons - 10867 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1772 / 3065
  • Number of attempts: 1
Com(m)a Trouble - 3829 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #170 / 866
  • Number of attempts: 1
Box it - 7906 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 24
  • Position: #976 / 1877
  • Number of attempts: 2
Cool or not? - 829 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 16
  • Position: #124 / 230
  • Number of attempts: 6
Vice versa - 7910 entries

Little role switching.

  • Best score: 12
  • Best player score: 21
  • Position: #1910 / 2129
  • Number of attempts: 1
Order and join - 983 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 11
  • Position: #143 / 259
  • Number of attempts: 6
Delete to the end of the current line - 812 entries

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

  • Best score: 5
  • Best player score: 6
  • Position: #347 / 391
  • Number of attempts: 1
swap or reverse - 126 entries

Try to swap or reverse the line as needed.

  • Best score: 16
  • Best player score: 16
  • Position: #53 / 69
  • Number of attempts: 2
Interleave lines - 185 entries

This is some kind of « paste -d'\n' c b a ». There are many ways to achieve this.. just find the shortest!

  • Best score: 17
  • Best player score: 28
  • Position: #33 / 60
  • Number of attempts: 5
ndaval
Github:

entered into 18 challenges

contributed 0 challenges