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

Array propagate - 241 entries

Complete the array with the keys as part of the value

  • Best score: 23
  • Best player score: 33
  • Number of attempts: 2
Adam's challenge - 804 entries

Change both normal to bold and 4 by 2. Adam Wathan challenge this on twitter . He did it in 11 keystrokes on Sublime.

  • Best score: 18
  • Best player score: 25
  • Number of attempts: 2
One number per line - 13430 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 23
  • Number of attempts: 2
citizen_hacks_2019_challenge4 - 43 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 5
  • Best player score: 6
  • Number of attempts: 2
I forgot quotes - 12173 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Number of attempts: 1
citizen_hacks_2019_challenge3 - 17 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 4
  • Best player score: 4
  • Number of attempts: 1
V to the i - 3985 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 2
Simple text editing with Vim - 10554 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 19
  • Number of attempts: 1
citizen_hacks_2019_challenge6 - 27 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 3
  • Best player score: 3
  • Number of attempts: 1
citizen_hacks_2019_challenge1 - 22 entries

For the Citizen Hacks 2019 Vim competition

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 1
citizen_hacks_2019_challenge2 - 95 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 7
  • Number of attempts: 3
Simple, Practical, and Common - 25767 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: 35
  • Number of attempts: 1
comment and uncomment code inline - 826 entries

It's very useful to be able to comment out a block of code in a quick edit. And likewise to uncomment the code. This operation often involves multi-line stanzas and even large blocks. With just line-wise navigation and insert mode this would cost you about 4 keystrokes per line. Master this hole of VimGolf and you'll quickly drop your key count in day to day Vim as well.

  • Best score: 9
  • Best player score: 12
  • Number of attempts: 2
Team names - 1485 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 21
  • Number of attempts: 2
Ahmed Hasan
Twitter:

PhD candidate in evolutionary genomics studying meiotic recombination with @RobWNess at @UofT. Digs #rstats, Python, population genetics, and guitars.

entered into 14 challenges

contributed 0 challenges