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 - 2367 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 / 514
  • Number of attempts: 9
Visual block training - 1041 entries

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

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

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

  • Best score: 10
  • Best player score: 11
  • Position: #195 / 542
  • Number of attempts: 4
Transpose a python matrix - 847 entries

Rotate the matrix in 90 degrees.

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

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

  • Best score: 41
  • Best player score: 58
  • Position: #34 / 63
  • Number of attempts: 2
Swap values - 4553 entries

Well, swap the values...

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

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

  • Best score: 10
  • Best player score: 11
  • Position: #751 / 1527
  • Number of attempts: 6
Add semicolons - 10809 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1769 / 3050
  • Number of attempts: 1
Com(m)a Trouble - 3697 entries

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

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

Create a box around a line.

  • Best score: 21
  • Best player score: 24
  • Position: #974 / 1868
  • 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 - 7819 entries

Little role switching.

  • Best score: 12
  • Best player score: 21
  • Position: #1895 / 2108
  • Number of attempts: 1
Order and join - 964 entries

There's something special about the input order.

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

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

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

Try to swap or reverse the line as needed.

  • Best score: 16
  • Best player score: 16
  • Position: #53 / 67
  • Number of attempts: 2
Interleave lines - 158 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: #31 / 58
  • Number of attempts: 5
ndaval
Github:

entered into 18 challenges

contributed 0 challenges