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 - 312 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: #62 / 99
  • Number of attempts: 5
From brakets to parens - 1251 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: #97 / 278
  • Number of attempts: 12
Change to ascending order - 516 entries

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

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

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

  • Best score: 18
  • Best player score: 25
  • Position: #95 / 149
  • Number of attempts: 13
Rearrange array to single level - 1811 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 / 306
  • Number of attempts: 14
Rearrange array to one line - 862 entries

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

  • Best score: 13
  • Best player score: 17
  • Position: #73 / 202
  • Number of attempts: 12
Case matching substitution - 89 entries

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

  • Best score: 31
  • Best player score: 52
  • Position: #16 / 21
  • Number of attempts: 10
delete swap - 1880 entries

delete all swap

  • Best score: 5
  • Best player score: 7
  • Position: #436 / 575
  • 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 - 5115 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #1105 / 1667
  • 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 ! - 10748 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2881 / 3711
  • 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 - 813 entries

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

  • Best score: 23
  • Best player score: 31
  • Position: #141 / 235
  • Number of attempts: 4
Change the content of a string - 1766 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 25
  • Position: #422 / 648
  • Number of attempts: 3
Simple text editing with Vim - 13526 entries

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

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

entered into 16 challenges

contributed 0 challenges