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

EDN reformat - 936 entries

The goal is to make the code more readable and concise while maintaining its functionality.

  • Best score: 17
  • Best player score: 21
  • Position: #74 / 134
  • Number of attempts: 1
Tic-Tac-Toe Grid Transformation - 290 entries

Your mission is to efficiently convert the original Tic-Tac-Toe grid, represented by 'x's and 'o's, into a neat and well-organized game board.

  • Best score: 58
  • Best player score: 139
  • Position: #46 / 68
  • Number of attempts: 1
Populate 3D bone names list - 405 entries

Ran into this at work, excited to see how this gets optimized

  • Best score: 21
  • Best player score: 29
  • Position: #59 / 106
  • Number of attempts: 3
Find fix point of cos - 1075 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 15
  • Position: #128 / 313
  • Number of attempts: 5
Surround the 'z' character with brackets, quotes, and print as formatted string. - 464 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 17
  • Position: #115 / 255
  • Number of attempts: 1
Paste a column after a column - 2170 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 32
  • Position: #350 / 464
  • Number of attempts: 1
Filter number combinations that don't add to 11 - 357 entries

Append the sum of each line to its end, alongside an equals sign, and remove any that do not sum to 11. The ordering of lines should stay the same. Note that the combinations are semi-arbitrary and not all 4-number combinations are present in the file.

  • Best score: 27
  • Best player score: 30
  • Position: #87 / 106
  • Number of attempts: 2
Tabbed Table to Python Array - 608 entries

Not payed by the hour? So make it fast ;-) The table contains the relative occurencies of bigrams (two consecutive letters) in 1/100,000 in the german language, copy-pasted from http://www.mathe.tu-freiberg.de/~hebisch/cafe/kryptographie/bigramme.html

  • Best score: 50
  • Best player score: 57
  • Position: #59 / 160
  • Number of attempts: 3
delete swap - 1466 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #266 / 465
  • Number of attempts: 7
Fill in the chess board - 886 entries

Fill in the name of each square using its file (a-h) and rank (1-8).

  • Best score: 19
  • Best player score: 37
  • Position: #92 / 173
  • Number of attempts: 1
Learn to ask for :help - 510 entries

Learn to use the help to reduce your strokes...

  • Best score: 19
  • Best player score: 34
  • Position: #74 / 118
  • Number of attempts: 2
Plotting some variables in python - 1543 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: 60
  • Position: #254 / 329
  • Number of attempts: 2
Simple, Practical, and Common - 33353 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: 26
  • Position: #3605 / 7358
  • Number of attempts: 2
One number per line - 18613 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Position: #2211 / 3841
  • Number of attempts: 7
Swap values inside brackets - 2464 entries

Easy challenge.

  • Best score: 14
  • Best player score: 30
  • Position: #531 / 569
  • Number of attempts: 1
remove lines containing the word "reader" - 3528 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #174 / 1142
  • Number of attempts: 2
Box it - 7818 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 28
  • Position: #1199 / 1861
  • Number of attempts: 1
One to Ten - 2159 entries

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

  • Best score: 12
  • Best player score: 12
  • Position: #92 / 660
  • Number of attempts: 2
Listen to the tubes
Twitter:

| Software engineer and graph maker | Ask me about Air Bud | He/Him |

entered into 18 challenges

contributed 0 challenges