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 - 2632 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 / 570
  • Number of attempts: 9
Visual block training - 1096 entries

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

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

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

  • Best score: 10
  • Best player score: 11
  • Position: #197 / 561
  • 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 - 330 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: 18
  • Best player score: 21
  • Position: #28 / 90
  • Number of attempts: 3
swap number pairs - 2146 entries

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

  • Best score: 16
  • Best player score: 18
  • Position: #137 / 390
  • 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 - 4661 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #526 / 1282
  • Number of attempts: 5
prepend * to every non-blank line - 6366 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #759 / 1555
  • Number of attempts: 6
Add semicolons - 10916 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1778 / 3085
  • Number of attempts: 1
Com(m)a Trouble - 3941 entries

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

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

Create a box around a line.

  • Best score: 21
  • Best player score: 24
  • Position: #982 / 1891
  • Number of attempts: 2
Cool or not? - 842 entries

abc trying to be cool or not...

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

Little role switching.

  • Best score: 12
  • Best player score: 21
  • Position: #1926 / 2146
  • Number of attempts: 1
Order and join - 992 entries

There's something special about the input order.

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

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

  • Best score: 5
  • Best player score: 6
  • Position: #362 / 411
  • 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