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

Ugly spreadsheet copy/paste to CSV - 747 entries

convert an ugly spreadsheet copy/paste into a CSV format.

  • Best score: 19
  • Best player score: 43
  • Number of attempts: 1
Preferably without multi-cursor plugin - 363 entries

Originally asked as question on reddit by kpthunder: https://www.reddit.com/r/vim/comments/9fvsro/what_is_the_most_efficient_way_to_go_about/

  • Best score: 30
  • Best player score: 39
  • Number of attempts: 1
Every other line - 2393 entries

AaAaAaA

  • Best score: 12
  • Best player score: 31
  • Number of attempts: 1
Saving the hashes(#) - 1854 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 48
  • Number of attempts: 1
multiple cursor alternative - 1296 entries

from: https://www.reddit.com/r/vim/comments/6w5pfa/crosspost_from_remacs_how_would_you_do_this_in_vim/

  • Best score: 19
  • Best player score: 27
  • Number of attempts: 1
From argument to object - 1191 entries

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

  • Best score: 17
  • Best player score: 25
  • Number of attempts: 1
One number per line - 15564 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 24
  • Number of attempts: 1
Swap the operands under comparison - 238 entries

Swap the operands under comparison to prevent null pointer exception (at least in java)

  • Best score: 19
  • Best player score: 22
  • Number of attempts: 1
Table Reshuffle - 325 entries

Fix the column order in this table... also append the new 'username' column.

  • Best score: 22
  • Best player score: 36
  • Number of attempts: 2
Copy three lines - 2369 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 21
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 9970 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 1
Collect List - 3789 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 15
  • Number of attempts: 2
Split line with dots - 1981 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 34
  • Number of attempts: 1
The name of the game - 594 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 1
That hyphen - 2319 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 13
  • Number of attempts: 1
convert yml into java pojo field - 758 entries

How fast vim can create fields for java pojo i.e class declaration referring to a (simple) yml file

  • Best score: 29
  • Best player score: 34
  • Number of attempts: 1
Swap values - 4019 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 16
  • Number of attempts: 1
V to the i - 4253 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 3
Generate a list of numbers - 255 entries

Please generate list of numbers from 1 to 20.

  • Best score: 14
  • Best player score: 17
  • Number of attempts: 2
Switch function arguments - 1872 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 15
  • Number of attempts: 1
-a-b-c- - 2813 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 2
replacing each line of a block selection - 2667 entries

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

  • Best score: 18
  • Best player score: 21
  • Number of attempts: 1
prince ducaca
Twitter:

├ętron royal

entered into 22 challenges

contributed 0 challenges