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) - 440 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 / 105
  • Number of attempts: 8
Fix the shell script! - 807 entries

Fix the shell script with the fewest keystrokes!

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

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

  • Best score: 18
  • Best player score: 19
  • Position: #17 / 79
  • Number of attempts: 8
Innocent Monster - 112 entries

You have the tools, just create him!

  • Best score: 60
  • Best player score: 74
  • Position: #14 / 33
  • Number of attempts: 4
hello-world-vimgolf - 1418 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #172 / 408
  • Number of attempts: 4
Increment number for every 10 lines - 151 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 / 44
  • Number of attempts: 5
vimtutor, but you can cheat - 14 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: #4 / 6
  • Number of attempts: 1
Rural Post - 4087 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #426 / 1010
  • Number of attempts: 5
Simple, Practical, and Common - 32881 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: #1984 / 7266
  • Number of attempts: 7
prepend * to every non-blank line - 5948 entries

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

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

Just give me the numbers.

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

Make arrow function type less verbose and easier to read

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

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #311 / 2986
  • Number of attempts: 4
Bad Copy Syntax - 1926 entries

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

  • Best score: 18
  • Best player score: 19
  • Position: #136 / 490
  • Number of attempts: 3
remove lines containing the word "reader" - 3450 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #674 / 1119
  • Number of attempts: 1
Com(m)a Trouble - 3369 entries

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

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

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #235 / 1834
  • Number of attempts: 4
Line under headers - 1911 entries

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

  • Best score: 24
  • Best player score: 27
  • Position: #133 / 470
  • Number of attempts: 2
I forgot quotes - 15712 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #954 / 4109
  • Number of attempts: 6
Words in parens - 12729 entries

We should all ace this, right?

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

Gamedev, memes & weeb shit. he/him 🏴

entered into 20 challenges

contributed 0 challenges