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) - 1253 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: #17 / 271
  • Number of attempts: 8
Fix the shell script! - 2544 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 26
  • Position: #20 / 589
  • Number of attempts: 9
Visual block training - 1069 entries

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

  • Best score: 17
  • Best player score: 19
  • Position: #46 / 203
  • Number of attempts: 8
Innocent Monster - 217 entries

You have the tools, just create him!

  • Best score: 60
  • Best player score: 74
  • Position: #20 / 49
  • Number of attempts: 4
hello-world-vimgolf - 2490 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #172 / 705
  • Number of attempts: 4
Increment number for every 10 lines - 229 entries

The file consists of 2 columns (code and percentage). We need to add 2 more columns with increasing number for 4th column (Xcols) and increment 3rd column (Ycols) only for every 10 lines with reset of 4th column

  • Best score: 25
  • Best player score: 25
  • Position: #4 / 63
  • Number of attempts: 5
vimtutor, but you can cheat - 21 entries

It's time to revisit vimtutor, but as an experienced Vim user! Your goal is to change the file to appear as if you had gone through the tutorial, but you do NOT need to actually complete the tutorial as written or do anything that doesn't result in changes to the file. You may use whatever you have in your Vim toolbelt that's allowed under VimGolf rules. The whole tutorial is too large to submit, so only the relevant lesson headers and associated practice lines are presented in this challenge. You will have to reference the tutor for the original instructions if you need them: https://raw.githubusercontent.com/vim/vim/4466ad6baa22485abb1147aca3340cced4778a66/runtime/tutor/tutor

  • Best score: 149
  • Best player score: 179
  • Position: #6 / 10
  • Number of attempts: 1
Rural Post - 4462 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 10
  • Position: #452 / 1093
  • Number of attempts: 5
Simple, Practical, and Common - 33584 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: 22
  • Position: #1983 / 7407
  • Number of attempts: 7
prepend * to every non-blank line - 6298 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #419 / 1535
  • Number of attempts: 9
One number per line - 18710 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #578 / 3857
  • Number of attempts: 7
Refactor typescript arrow function type - 323 entries

Make arrow function type less verbose and easier to read

  • Best score: 20
  • Best player score: 20
  • Position: #5 / 71
  • Number of attempts: 3
Add semicolons - 10846 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #310 / 3060
  • Number of attempts: 4
Bad Copy Syntax - 2028 entries

Copy should be from right to left, but sometimes you type it wrong.

  • Best score: 18
  • Best player score: 19
  • Position: #144 / 522
  • Number of attempts: 3
remove lines containing the word "reader" - 3574 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #695 / 1158
  • Number of attempts: 1
Com(m)a Trouble - 3791 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #83 / 858
  • Number of attempts: 5
Box it - 7902 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #234 / 1874
  • Number of attempts: 4
Line under headers - 2031 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 24
  • Best player score: 27
  • Position: #144 / 500
  • Number of attempts: 2
I forgot quotes - 15970 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #953 / 4175
  • Number of attempts: 6
Words in parens - 12928 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #1049 / 3960
  • Number of attempts: 3
Eviber
Twitter:

Gamedev, memes & weeb shit. he/him 🏴

entered into 20 challenges

contributed 0 challenges