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

Find fix point of cos - 1444 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 17
  • Position: #293 / 427
  • Number of attempts: 1
Surround the 'z' character with brackets, quotes, and print as formatted string. - 572 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 17
  • Position: #70 / 321
  • Number of attempts: 1
Simple, Practical, and Common - 33866 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: 22
  • Best player score: 28
  • Position: #4402 / 7474
  • Number of attempts: 4
One number per line - 18831 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 24
  • Position: #3235 / 3889
  • Number of attempts: 2
Applying same text modification in several lines - 2915 entries

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

  • Best score: 12
  • Best player score: 16
  • Position: #576 / 863
  • Number of attempts: 1
Add semicolons - 10916 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 14
  • Position: #2099 / 3085
  • Number of attempts: 5
remove lines containing the word "reader" - 3622 entries

easy stuff

  • Best score: 9
  • Best player score: 14
  • Position: #1021 / 1177
  • Number of attempts: 4
Box it - 7962 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 24
  • Position: #875 / 1891
  • Number of attempts: 5
ninja substitution - 1427 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 32
  • Position: #249 / 269
  • Number of attempts: 1
Change part of a function name in multiple occurrences - 672 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: 16
  • Position: #139 / 210
  • Number of attempts: 1
Remove quotes after first field - 386 entries

Remove the quotes around each field except for the first field.

  • Best score: 16
  • Best player score: 27
  • Position: #86 / 93
  • Number of attempts: 1
Put the months in order - 979 entries

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

  • Best score: 20
  • Best player score: 53
  • Position: #137 / 165
  • Number of attempts: 3
Reorder the groups - 1185 entries

Change the order so that the groups of fruit come before the vegetables.

  • Best score: 14
  • Best player score: 20
  • Position: #168 / 266
  • Number of attempts: 3
I forgot quotes - 16093 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Position: #2685 / 4202
  • Number of attempts: 7
attr_aligner - 3525 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 52
  • Position: #684 / 706
  • Number of attempts: 1
Words in parens - 12992 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2488 / 3977
  • Number of attempts: 1
Simple text editing with Vim - 13273 entries

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

  • Best score: 13
  • Best player score: 17
  • Position: #2587 / 3811
  • Number of attempts: 2
Mat
Twitter:

geek, software developer, musician

entered into 17 challenges

contributed 0 challenges