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

Swap assigned value - 556 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 11
  • Position: #123 / 235
  • Number of attempts: 3
Parsing with CSV: Unify lines and result. - 164 entries

col1;col2;col3;col4 A;1;4;5 A;3;4; A;1;4; # New output: col1;col2;col3;col4 A;1(2x);3;4(3x);5 any ideas?

  • Best score: 21
  • Best player score: 30
  • Position: #69 / 72
  • Number of attempts: 1
Minimalist Limerick - 503 entries

Reproduce this lovely poem.

  • Best score: 31
  • Best player score: 150
  • Position: #167 / 167
  • Number of attempts: 1
Coordinates placeholder - 61 entries

Place coordinates instead of target search.

  • Best score: 22
  • Best player score: 27
  • Position: #32 / 35
  • Number of attempts: 1
Define to require - 118 entries

When JSHint is enabled, there's a rule that doesn't let you have more than 6 arguments in a function, so the moment you need to add a 7th argument, you need to do a refactoring.

  • Best score: 62
  • Best player score: 188
  • Position: #46 / 48
  • Number of attempts: 2
Groups magic - 141 entries

Regexp or macros for string converting: (a) -> ___ (abc) -> ____ (abcd) -> ______ All in the '(' replace to _ multiply by char count + ()

  • Best score: 13
  • Best player score: 14
  • Position: #36 / 84
  • Number of attempts: 1
Python: Lots of function arguments - 81 entries

The function definition is too long for one line. The modeline helps you with some typical Python indent settings.

  • Best score: 13
  • Best player score: 29
  • Position: #37 / 40
  • Number of attempts: 1
Niil Öhlin
Twitter:

entered into 7 challenges

contributed 0 challenges