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

convert yml into java pojo field - 525 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: 30
  • Number of attempts: 1
Adam's challenge - 647 entries

Change both normal to bold and 4 by 2. Adam Wathan challenge this on twitter . He did it in 11 keystrokes on Sublime.

  • Best score: 18
  • Best player score: 18
  • Number of attempts: 3
Swap values inside brackets - 1010 entries

Easy challenge.

  • Best score: 14
  • Best player score: 16
  • Number of attempts: 2
On Being Stylish - 50 entries

Your PR cannot be accepted if you don't follow our corporate style guide.

  • Best score: 33
  • Best player score: 46
  • Number of attempts: 2
Combines all items - 231 entries

For each line that starts with the same number I want to combine its contents

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 2
Change part of a function name in multiple occurrences - 199 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: 18
  • Number of attempts: 1
remove lines containing the word "reader" - 478 entries

easy stuff

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

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

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 2
Delete to the end of the current line - 157 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: 1
Simple text editing with Vim - 10020 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 2
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: 35
  • Number of attempts: 2
Turn a ninja to case-insensitive [Nn][Ii][Nn][Jj][Aa] regexp! - 40 entries

I bumped into this in a dailywtf code: http://pastebin.com/QApa5ycS I didn't want to translate a string whenever I wanted to be [Ss][Aa][Rr][Cc][Aa][Ss][Tt][Ii][Cc] on slack, so I figured a script (python, sed, whatever) would be helpful. Well, or a few vim keystroke!

  • Best score: 18
  • Best player score: 18
  • Number of attempts: 1
Just the middle - 8609 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
Words in parens - 10478 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 2
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: 27
  • Number of attempts: 3
Nesting SASS - 208 entries

Move a block inside another block and indent it

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 4
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: 21
  • Number of attempts: 1
I forgot quotes - 10443 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 4
Simple, Practical, and Common - 21855 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: 4
Order and join - 701 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 12
  • Number of attempts: 3
Com(m)a Trouble - 872 entries

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

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 2
Valacar
Twitter:

entered into 21 challenges

contributed 0 challenges