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

From brakets to parens - 1290 entries

This is one of the most common problem when you wrap an array for error handling. Vim is useful when you convert foo[i][j][k] into foo(i, j, k) for many times.

  • Best score: 24
  • Best player score: 41
  • Position: #190 / 290
  • Number of attempts: 1
Create json from a .env file - 1682 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 52
  • Position: #134 / 411
  • Number of attempts: 8
Simple, Practical, and Common - 34012 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: 22
  • Position: #631 / 7513
  • Number of attempts: 7
One number per line - 18903 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #72 / 3904
  • Number of attempts: 5
Swap values inside brackets - 2551 entries

Easy challenge.

  • Best score: 13
  • Best player score: 16
  • Position: #231 / 594
  • Number of attempts: 3
Add semicolons - 10956 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1198 / 3098
  • Number of attempts: 2
Every other line - 2951 entries

AaAaAaA

  • Best score: 12
  • Best player score: 16
  • Position: #376 / 712
  • Number of attempts: 3
Pretty multi-line bash - 256 entries

Bash line continuations are much prettier when they're column aligned.

  • Best score: 15
  • Best player score: 30
  • Position: #63 / 80
  • Number of attempts: 1
C Reformatting - 712 entries

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

  • Best score: 30
  • Best player score: 44
  • Position: #74 / 167
  • Number of attempts: 3
Paragraph breaks - 550 entries

Swap the blank lines and the aaa lines.

  • Best score: 10
  • Best player score: 11
  • Position: #60 / 172
  • Number of attempts: 4
Generate a list of numbers - 312 entries

Please generate list of numbers from 1 to 20.

  • Best score: 14
  • Best player score: 16
  • Position: #122 / 144
  • Number of attempts: 2
Array transposition - 2481 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 48
  • Position: #430 / 461
  • Number of attempts: 1
convert yml into java pojo field - 879 entries

How fast vim can create fields for java pojo i.e class declaration referring to a (simple) yml file

  • Best score: 29
  • Best player score: 29
  • Position: #16 / 233
  • Number of attempts: 3
Replace Parameter with Explicit Methods - 102 entries

Implementing the methods of a Java Interface

  • Best score: 33
  • Best player score: 49
  • Position: #25 / 30
  • Number of attempts: 3
-a-b-c- - 3241 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Position: #53 / 1146
  • Number of attempts: 4
SFD-ROC: Tic-Tac-Toe - 174 entries

Tic-Tac-Toe You are 'X', and it is your turn. Stop 'O' from winning, and complete the game. Draw a diagonal line through your winning row of three X's.

  • Best score: 25
  • Best player score: 34
  • Position: #30 / 55
  • Number of attempts: 2
The name of the game - 696 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #45 / 369
  • Number of attempts: 2
SFD-ROC: ASCII Logo Border - 98 entries

Draw a border around this familiar logo ;)

  • Best score: 20
  • Best player score: 30
  • Position: #21 / 34
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1642 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 8
  • Position: #6 / 457
  • Number of attempts: 3
Vertical Limit - 2637 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 22
  • Position: #139 / 778
  • Number of attempts: 5
Simple text editing with Vim - 13626 entries

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

  • Best score: 13
  • Best player score: 17
  • Position: #2492 / 3902
  • Number of attempts: 3
♜ Pepe Doval
Twitter:

Streaming chess at https://t.co/MlNTQ1HofE · Coding at @chessable · Teaching at @eaganchess he/him

entered into 21 challenges

contributed 0 challenges