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

Deleting text - 254 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 49
  • Position: #64 / 81
  • Number of attempts: 3
Count words - 62 entries

Merge duplicates and count each word.

  • Best score: 39
  • Best player score: 217
  • Position: #15 / 17
  • Number of attempts: 1
Format a long line - 80 entries

Reformat long lines (gq), textwidth=78, no trailing spaces.

  • Best score: 17
  • Best player score: 34
  • Position: #19 / 26
  • Number of attempts: 2
Evil Numbers - 82 entries

Print the first 100 evil numbers https://oeis.org/A001969. This is an advert for code.golf https://code.golf/evil-numbers#viml

  • Best score: 25
  • Best player score: 358
  • Position: #23 / 23
  • Number of attempts: 1
Mirror image - 75 entries

Add the second eye

  • Best score: 15
  • Best player score: 25
  • Position: #16 / 27
  • Number of attempts: 3
New teacher - 923 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 28
  • Position: #132 / 194
  • Number of attempts: 1
months to html list items - 1010 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 29
  • Position: #193 / 274
  • Number of attempts: 1
Quicksort - 1962 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 6
  • Position: #118 / 431
  • Number of attempts: 8
hello-world-vimgolf - 2499 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #331 / 708
  • Number of attempts: 3
Simple, Practical, and Common - 33616 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: 30
  • Position: #5361 / 7420
  • Number of attempts: 2
Right Align Part of the line - 133 entries

The challenge is to right align a part of the line - this is useful in some SQL queries where it's more clear which are the fields displayed

  • Best score: 19
  • Best player score: 64
  • Position: #42 / 42
  • Number of attempts: 1
smiech
Github:

entered into 11 challenges

contributed 0 challenges