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 - 2413 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 / 523
  • Number of attempts: 9
Visual block training - 1047 entries

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

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

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

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

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 33
  • Position: #50 / 135
  • Number of attempts: 15
Enumerate Bullets - 309 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 / 83
  • Number of attempts: 3
swap number pairs - 2023 entries

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

  • Best score: 16
  • Best player score: 18
  • Position: #132 / 373
  • Number of attempts: 11
ssh config skills - 250 entries

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

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

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #524 / 1259
  • Number of attempts: 5
prepend * to every non-blank line - 6254 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #753 / 1530
  • Number of attempts: 6
Add semicolons - 10831 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1770 / 3055
  • Number of attempts: 1
Com(m)a Trouble - 3711 entries

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

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

Create a box around a line.

  • Best score: 21
  • Best player score: 24
  • Position: #975 / 1870
  • Number of attempts: 2
Cool or not? - 802 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 16
  • Position: #123 / 228
  • Number of attempts: 6
Vice versa - 7865 entries

Little role switching.

  • Best score: 12
  • Best player score: 21
  • Position: #1899 / 2114
  • Number of attempts: 1
Order and join - 965 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 11
  • Position: #142 / 258
  • Number of attempts: 6
Delete to the end of the current line - 795 entries

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

  • Best score: 5
  • Best player score: 6
  • Position: #345 / 387
  • Number of attempts: 1
swap or reverse - 118 entries

Try to swap or reverse the line as needed.

  • Best score: 16
  • Best player score: 16
  • Position: #53 / 68
  • Number of attempts: 2
Interleave lines - 159 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: #32 / 59
  • Number of attempts: 5
ndaval
Github:

entered into 18 challenges

contributed 0 challenges