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

Python challenge - 58 entries

Change the types of the variables in the list from str to float, while keeping the truncation.

  • Best score: 8
  • Best player score: 59
  • Number of attempts: 3
Swap values inside brackets - 995 entries

Easy challenge.

  • Best score: 14
  • Best player score: 35
  • Number of attempts: 4
SFD-ROC: Tic-Tac-Toe - 124 entries

Tic-Tac-Toe You are 'X', and it is your turn. Stop 'O' from winning, and complete the game. Draw a diagonal line through your winning row of three X's.

  • Best score: 25
  • Best player score: 34
  • Number of attempts: 8
Preferably without multi-cursor plugin - 178 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: 33
  • Number of attempts: 7
Simple format (2) - 109 entries

try again!

  • Best score: 23
  • Best player score: 34
  • Number of attempts: 3
Missing Library and a Typo - 604 entries

I forgot to add a c library, please add it for me. Also I'm bad at typing so fix my typo too.

  • Best score: 15
  • Best player score: 19
  • Number of attempts: 4
Put the months in order - 165 entries

Our contractor thought that months should be in alphabetical order. Put them in calendar order please.

  • Best score: 23
  • Best player score: 31
  • Number of attempts: 6
Every other line - 1854 entries

AaAaAaA

  • Best score: 12
  • Best player score: 17
  • Number of attempts: 5
Com(m)a Trouble - 871 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 10
Change part of a function name in multiple occurrences - 194 entries

Change the middle part of the function name in multiple places, preferably using the next and dot commands.

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 5
remove lines containing the word "reader" - 453 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 7
For all cases. - 99 entries

In this case... change it! :) Watch the line.

  • Best score: 8
  • Best player score: 8
  • Number of attempts: 3
Delete to the end of the current line - 147 entries

Delete to the end of the current line, but keep the character under the cursor.

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 2
Applying same text modification in several lines - 1020 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 4
One number per line - 10887 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 7
Santa's naughty / nice list - 41 entries

Christmas is here and Santa hasn't decided who's naughty or nice yet. He's given a list of names to his programmer friend to quickly split the children into naughty and nice. Hint: There's a hidden pattern that might be familiar.

  • Best score: 39
  • Best player score: 93
  • Number of attempts: 1
convert yml into java pojo field - 521 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: 29
  • Number of attempts: 6
Team names - 1270 entries

The team names are misspelled.

  • Best score: 13
  • Best player score: 16
  • Number of attempts: 7
Swap the operands under comparison - 175 entries

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

  • Best score: 7
  • Best player score: 24
  • Number of attempts: 1
I forgot quotes - 10438 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Number of attempts: 6
Simple, Practical, and Common - 21829 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 2
  • Best player score: 22
  • Number of attempts: 13
Don't know what this is - 1632 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 17
  • Number of attempts: 5
pankaj singh
Twitter:

entered into 22 challenges

contributed 0 challenges