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) - 848 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 / 184
  • Number of attempts: 8
Fix the shell script! - 1421 entries

Fix the shell script with the fewest keystrokes!

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

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

  • Best score: 17
  • Best player score: 19
  • Position: #28 / 123
  • Number of attempts: 8
Innocent Monster - 129 entries

You have the tools, just create him!

  • Best score: 60
  • Best player score: 74
  • Position: #15 / 39
  • Number of attempts: 4
hello-world-vimgolf - 1768 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #172 / 509
  • Number of attempts: 4
Increment number for every 10 lines - 173 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 / 50
  • Number of attempts: 5
vimtutor, but you can cheat - 15 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 / 7
  • Number of attempts: 1
Rural Post - 4160 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #431 / 1030
  • Number of attempts: 5
Simple, Practical, and Common - 33029 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 / 7290
  • Number of attempts: 7
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: #419 / 1481
  • Number of attempts: 9
One number per line - 18439 entries

Just give me the numbers.

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

Make arrow function type less verbose and easier to read

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

Simply add a semicolon at the end of each line

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

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

  • Best score: 18
  • Best player score: 19
  • Position: #139 / 497
  • Number of attempts: 3
remove lines containing the word "reader" - 3480 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #682 / 1127
  • Number of attempts: 1
Com(m)a Trouble - 3454 entries

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

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

Create a box around a line.

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

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

  • Best score: 24
  • Best player score: 27
  • Position: #135 / 476
  • Number of attempts: 2
I forgot quotes - 15808 entries

Oops.

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

We should all ace this, right?

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

Gamedev, memes & weeb shit. he/him 🏴

entered into 20 challenges

contributed 0 challenges