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

Fix the shell script! - 2373 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 28
  • Position: #146 / 550
  • Number of attempts: 7
Wikitext headings to markdown - 981 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 49
  • Position: #164 / 204
  • Number of attempts: 1
hello-world-vimgolf - 2389 entries

Simple number generation

  • Best score: 10
  • Best player score: 150
  • Position: #662 / 678
  • Number of attempts: 1
Plotting some variables in python - 1592 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: 55
  • Position: #229 / 339
  • Number of attempts: 5
simple replacements - 1669 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 27
  • Position: #288 / 373
  • Number of attempts: 2
Python dataclasses - 1113 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 29
  • Position: #178 / 279
  • Number of attempts: 2
Modernise code - 1343 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 52
  • Position: #231 / 310
  • Number of attempts: 3
Rural Post - 4390 entries

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

  • Best score: 9
  • Best player score: 27
  • Position: #956 / 1077
  • Number of attempts: 2
Satisfy the go linter - 2341 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 34
  • Position: #390 / 460
  • Number of attempts: 3
Add quotes to ansible playbook - 937 entries

You created an ansible playbook, but forgot to add quotes. Can you fix it?

  • Best score: 8
  • Best player score: 9
  • Position: #170 / 298
  • Number of attempts: 6
Multiline to Single Line - 673 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 5
  • Position: #183 / 295
  • Number of attempts: 4
Simple, Practical, and Common - 33411 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: 28
  • Position: #4502 / 7372
  • Number of attempts: 4
Cool or not? - 802 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 36
  • Position: #223 / 228
  • Number of attempts: 1
Missing Library and a Typo - 856 entries

I forgot to add a c library, please add it for me. Also I'm bad at typing so fix my typo too.

  • Best score: 15
  • Best player score: 30
  • Position: #201 / 209
  • Number of attempts: 1
C Reformatting - 688 entries

You may use Visual mode... or not. #uppercase

  • Best score: 30
  • Best player score: 104
  • Position: #157 / 161
  • Number of attempts: 1
Delete to the end of the current line - 792 entries

Delete to the end of the current line, but keep the character under the cursor.

  • Best score: 5
  • Best player score: 6
  • Position: #341 / 386
  • Number of attempts: 4
switch variable - 5038 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 17
  • Position: #1621 / 1737
  • Number of attempts: 3
Chun Chanjun
Twitter:

cjchun

entered into 17 challenges

contributed 0 challenges