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

Change class fields from camel case to snake case - 380 entries

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

  • Best score: 18
  • Best player score: 19
  • Position: #34 / 95
  • Number of attempts: 9
Rearrange array to single level - 1430 entries

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

  • Best score: 14
  • Best player score: 17
  • Position: #38 / 234
  • Number of attempts: 15
Copy punctuation - 536 entries

I want to copy the last line’s brackets, quotes, and commas to each line. How?

  • Best score: 19
  • Best player score: 28
  • Position: #31 / 137
  • Number of attempts: 8
months to html list items - 1064 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 23
  • Position: #53 / 289
  • Number of attempts: 7
Paste a column after a column - 2557 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 21
  • Position: #335 / 558
  • Number of attempts: 3
Swap assigned value - 655 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 10
  • Position: #114 / 256
  • Number of attempts: 4
abcd > a b c d - 297 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #207 / 226
  • Number of attempts: 2
Stairs Indenting - 479 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 14
  • Position: #140 / 199
  • Number of attempts: 5
Aligning function arguments to match a specific coding style - 259 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: 18
  • Position: #39 / 72
  • Number of attempts: 12
Eng. José Esteves
Github:

entered into 9 challenges

contributed 0 challenges