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 - 591 entries

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

  • Best score: 17
  • Best player score: 27
  • Position: #99 / 192
  • Number of attempts: 2
Create a pandoc compatible table - 179 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 / 52
  • Number of attempts: 2
Aligning function arguments to match a specific coding style - 218 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: #12 / 66
  • Number of attempts: 4
replacing each line of a block selection - 2912 entries

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

  • Best score: 18
  • Best player score: 27
  • Position: #553 / 761
  • Number of attempts: 2
Switch function arguments - 2035 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 15
  • Position: #502 / 641
  • Number of attempts: 2
Reverse and double space - 475 entries

Reverse the order of the given lines and double space everything

  • Best score: 14
  • Best player score: 15
  • Position: #70 / 191
  • Number of attempts: 2
switch variable - 5013 entries

how fast can you switch two variable ?

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

Numbers are fun!

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

Align as one import per line.

  • Best score: 17
  • Best player score: 17
  • Position: #29 / 194
  • Number of attempts: 13
Braces or Brackets? - 805 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: #128 / 270
  • 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