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

Flip All Bits - 103 entries

Perform a bitwise NOT operation on each bit, meaning that bits that are 0 become 1, and those that are 1 become 0.

  • Best score: 26
  • Best player score: 47
  • Position: #21 / 34
  • Number of attempts: 5
From brakets to parens - 1134 entries

This is one of the most common problem when you wrap an array for error handling. Vim is useful when you convert foo[i][j][k] into foo(i, j, k) for many times.

  • Best score: 24
  • Best player score: 28
  • Position: #89 / 249
  • Number of attempts: 12
Change to ascending order - 500 entries

Change each line of numbers consistently from descending to ascending order.

  • Best score: 17
  • Best player score: 117
  • Position: #102 / 125
  • Number of attempts: 4
Change class fields from camel case to snake case - 617 entries

This is the reverse of the previous challenge: https://www.vimgolf.com/challenges/9v006705493c000000000513

  • Best score: 18
  • Best player score: 25
  • Position: #92 / 140
  • Number of attempts: 13
Rearrange array to single level - 1791 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 21
  • Position: #97 / 299
  • Number of attempts: 14
Rearrange array to one line - 840 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 17
  • Position: #70 / 197
  • Number of attempts: 12
Case matching substitution - 82 entries

Swap every "lorem" for "ipsum", keeping the letter cases the same.

  • Best score: 31
  • Best player score: 52
  • Position: #15 / 19
  • Number of attempts: 10
delete swap - 1843 entries

delete all swap

  • Best score: 5
  • Best player score: 7
  • Position: #435 / 573
  • Number of attempts: 3
Add quotes to ansible playbook - 1039 entries

You created an ansible playbook, but forgot to add quotes. Can you fix it?

  • Best score: 8
  • Best player score: 10
  • Position: #268 / 329
  • Number of attempts: 2
Search and Replace 0 - 5089 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 14
  • Position: #1100 / 1658
  • Number of attempts: 5
Python Hello World! Reformatting - 1015 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 45
  • Position: #299 / 390
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10743 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2880 / 3710
  • Number of attempts: 7
Shebangs for all - 2090 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 22
  • Position: #457 / 529
  • Number of attempts: 9
Reformat most common surnames - 808 entries

Reformat copy-pasted table into a list of the most common surnames

  • Best score: 23
  • Best player score: 31
  • Position: #139 / 233
  • Number of attempts: 4
Change the content of a string - 1761 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 25
  • Position: #420 / 645
  • Number of attempts: 3
Simple text editing with Vim - 13468 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #2408 / 3865
  • Number of attempts: 6
qoober1
Github:

entered into 16 challenges

contributed 0 challenges