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 - 309 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 49
  • Position: #75 / 99
  • Number of attempts: 3
Count words - 92 entries

Merge duplicates and count each word.

  • Best score: 39
  • Best player score: 217
  • Position: #20 / 23
  • Number of attempts: 1
Format a long line - 105 entries

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

  • Best score: 17
  • Best player score: 34
  • Position: #25 / 32
  • Number of attempts: 2
Evil Numbers - 103 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: #26 / 26
  • Number of attempts: 1
Mirror image - 104 entries

Add the second eye

  • Best score: 15
  • Best player score: 25
  • Position: #23 / 35
  • Number of attempts: 3
New teacher - 1419 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 28
  • Position: #189 / 299
  • Number of attempts: 1
months to html list items - 1108 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 29
  • Position: #210 / 300
  • Number of attempts: 1
Quicksort - 2058 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 / 457
  • Number of attempts: 8
hello-world-vimgolf - 2513 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #331 / 717
  • Number of attempts: 3
Simple, Practical, and Common - 33866 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: #5388 / 7474
  • 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