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) - 832 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 / 183
  • Number of attempts: 9
Fix the shell script! - 1380 entries

Fix the shell script with the fewest keystrokes!

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

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

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

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

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

Let convert some simple Java file to JavaScript!

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

Simple number generation

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

Speak in tongues

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

Who even sorted this?

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

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

  • Best score: 19
  • Best player score: 21
  • Position: #15 / 102
  • Number of attempts: 11
Plotting some variables in python - 1264 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 / 268
  • Number of attempts: 9
prepend * to every non-blank line - 6061 entries

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

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

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

  • Best score: 5
  • Best player score: 5
  • Position: #264 / 363
  • Number of attempts: 3
Preferably without multi-cursor plugin - 508 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 / 121
  • Number of attempts: 10
Reconstruct the Sentence - 1195 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 / 352
  • Number of attempts: 7
Whitespace, empty lines and tabs - 3060 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #23 / 677
  • Number of attempts: 14
Simple text editing with Vim - 11746 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 / 3444
  • Number of attempts: 4
Reformat/Refactor a Golfer Class - 6130 entries

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

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

Computer/human language polyglot.

entered into 17 challenges

contributed 0 challenges