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

Swap function parameters and delete all comments in python. - 1073 entries

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 40
  • Position: #238 / 262
  • Number of attempts: 2
Remove adjacent duplicates - 732 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 38
  • Position: #136 / 187
  • Number of attempts: 1
Find fix point of cos - 1486 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: 50
  • Position: #401 / 435
  • Number of attempts: 1
Paste a column after a column - 2672 entries

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

  • Best score: 7
  • Best player score: 220
  • Position: #579 / 580
  • Number of attempts: 1
delete swap - 1918 entries

delete all swap

  • Best score: 5
  • Best player score: 12
  • Position: #510 / 583
  • Number of attempts: 2
Put a newline after every 10 lines in vim - 1688 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 14
  • Position: #457 / 567
  • Number of attempts: 1
Yo To Hello - 1156 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 14
  • Position: #522 / 537
  • Number of attempts: 3
V to the i - 4890 entries

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

  • Best score: 7
  • Best player score: 16
  • Position: #1901 / 1917
  • Number of attempts: 1
Add semicolons - 10966 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 29
  • Position: #3006 / 3100
  • Number of attempts: 1
Search and Replace 0 - 5170 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 7
  • Best player score: 16
  • Position: #1287 / 1680
  • Number of attempts: 1
Team names - 1860 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 22
  • Position: #544 / 595
  • Number of attempts: 1
Python Hello World! Reformatting - 1057 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 72
  • Position: #399 / 402
  • Number of attempts: 2
Stairstep digits - 426 entries

Remove the evens. Double the odds.

  • Best score: 9
  • Best player score: 13
  • Position: #130 / 154
  • Number of attempts: 1
Order and join - 1032 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 57
  • Position: #264 / 265
  • Number of attempts: 1
Change name of a variable - 197 entries

Replace the name of the $variable with the fastest move possible. The challenge is having a command that allow you to easily change the variable name even if its indented.

  • Best score: 9
  • Best player score: 9
  • Position: #130 / 148
  • Number of attempts: 1
Do you demand a shrubbery? - 1208 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 32
  • Position: #301 / 310
  • Number of attempts: 1
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: 44
  • Position: #48 / 55
  • Number of attempts: 1
The name of the game - 707 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 16
  • Position: #363 / 374
  • Number of attempts: 1
Stairs Indenting - 503 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 54
  • Position: #202 / 203
  • Number of attempts: 1
Vertical Limit - 2642 entries

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

  • Best score: 10
  • Best player score: 118
  • Position: #780 / 781
  • Number of attempts: 1
switch variable - 5136 entries

how fast can you switch two variable ?

  • Best score: 9
  • Best player score: 13
  • Position: #1274 / 1767
  • Number of attempts: 1
The meaning - 589 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 9
  • Position: #366 / 369
  • Number of attempts: 1
Make it more readable - 2041 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 29
  • Position: #642 / 659
  • Number of attempts: 1
Reverse characters in a line - 848 entries

You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.

  • Best score: 8
  • Best player score: 27
  • Position: #252 / 285
  • Number of attempts: 1
Change the content of a string - 1810 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 27
  • Position: #548 / 659
  • Number of attempts: 2
Simple text editing with Vim - 13682 entries

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

  • Best score: 13
  • Best player score: 59
  • Position: #3859 / 3920
  • Number of attempts: 1
Luis Fernando Rodríguez Vargas
Github:

entered into 26 challenges

contributed 0 challenges