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

Generate a very basic Python constructor (fixed) - 1189 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 29
  • Position: #5 / 250
  • Number of attempts: 9
Fix the shell script! - 2369 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 26
  • Position: #10 / 546
  • Number of attempts: 4
Visual block training - 1019 entries

You see the input. You see the output. Go.

  • Best score: 17
  • Best player score: 19
  • Position: #44 / 187
  • Number of attempts: 6
Put a newline after every 10 lines in vim - 1585 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 10
  • Position: #16 / 529
  • Number of attempts: 5
Java to JavaScript - 257 entries

Let convert some simple Java file to JavaScript!

  • Best score: 59
  • Best player score: 59
  • Position: #5 / 67
  • Number of attempts: 12
hello-world-vimgolf - 2381 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #157 / 676
  • Number of attempts: 8
Contribute to keyboard mashing - 842 entries

Speak in tongues

  • Best score: 17
  • Best player score: 17
  • Position: #30 / 258
  • Number of attempts: 3
Reordering Lorem Ipsum - 261 entries

Who even sorted this?

  • Best score: 13
  • Best player score: 13
  • Position: #11 / 61
  • Number of attempts: 10
Learn to ask for :help - 544 entries

Learn to use the help to reduce your strokes...

  • Best score: 19
  • Best player score: 21
  • Position: #15 / 124
  • Number of attempts: 11
Plotting some variables in python - 1582 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

  • Best score: 34
  • Best player score: 34
  • Position: #36 / 335
  • Number of attempts: 9
prepend * to every non-blank line - 6223 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 10
  • Position: #415 / 1519
  • Number of attempts: 10
Wrap the text of an email message to 79 characters - 684 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 5
  • Position: #264 / 389
  • Number of attempts: 3
Preferably without multi-cursor plugin - 538 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: 30
  • Position: #21 / 127
  • Number of attempts: 10
Reconstruct the Sentence - 1377 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 20
  • Best player score: 20
  • Position: #114 / 386
  • Number of attempts: 7
Whitespace, empty lines and tabs - 3352 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 16
  • Position: #23 / 738
  • Number of attempts: 14
Simple text editing with Vim - 12301 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #667 / 3584
  • Number of attempts: 4
Reformat/Refactor a Golfer Class - 6601 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 32
  • Position: #170 / 1621
  • Number of attempts: 9
Pedro Minicz
Twitter:

Computer/human language polyglot.

entered into 17 challenges

contributed 0 challenges