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 - 731 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 - 326 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 - 2234 entries

AaAaAaA

  • Best score: 12
  • Best player score: 31
  • Number of attempts: 1
Saving the hashes(#) - 1806 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 - 1175 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 - 1132 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 - 14200 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 24
  • Number of attempts: 1
Swap the operands under comparison - 229 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 - 2237 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 ! - 9728 entries

A HAPPY NEW YEAR 2014 !

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

Convert to comma separated list.

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

This line is too long, split it.

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

End up with the name of the game.

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

"vim vi improved"

  • Best score: 9
  • Best player score: 13
  • Number of attempts: 1
convert yml into java pojo field - 717 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 - 3773 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 16
  • Number of attempts: 1
V to the i - 4117 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 - 253 entries

Please generate list of numbers from 1 to 20.

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

How to switch two arguments of a function.

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

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 2
replacing each line of a block selection - 2591 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