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

Prefixes and suffixes - 567 entries

Generate all prefixes of "vimchallenge", then all suffixes.

  • Best score: 17
  • Best player score: 27
  • Position: #96 / 185
  • Number of attempts: 2
Create a pandoc compatible table - 176 entries

In [this vimcast][1], a featured gist from Tim Pope shows how to quickly make a simple table structure. How fast can you convert it to pandoc's markdown style? [1]: http://vimcasts.org/episodes/aligning-text-with-tabular-vim/

  • Best score: 32
  • Best player score: 33
  • Position: #13 / 50
  • Number of attempts: 2
Aligning function arguments to match a specific coding style - 202 entries

Most projects have specific coding style guidelines. In this case, the argument list must be broken into a new line for each argument, with the argument names right aligned, taking into account pointers.

  • Best score: 16
  • Best player score: 17
  • Position: #10 / 64
  • Number of attempts: 4
replacing each line of a block selection - 2791 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 27
  • Position: #535 / 732
  • Number of attempts: 2
Switch function arguments - 1982 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 15
  • Position: #491 / 627
  • Number of attempts: 2
Reverse and double space - 445 entries

Reverse the order of the given lines and double space everything

  • Best score: 14
  • Best player score: 15
  • Position: #68 / 183
  • Number of attempts: 2
switch variable - 4917 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #79 / 1701
  • Number of attempts: 5
The meaning - 521 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #3 / 336
  • Number of attempts: 3
imports alignment (python) - 640 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 17
  • Position: #29 / 191
  • Number of attempts: 13
Braces or Brackets? - 710 entries

Someone forgot whether to use braces or brackets and you have to clean up their code!

  • Best score: 34
  • Best player score: 44
  • Position: #117 / 253
  • Number of attempts: 6
Aaron Lake
Twitter:

Sr. Solutions Architect at Online Tech. Technology addict, who happens to sell cloudy things.

entered into 10 challenges

contributed 0 challenges