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 columns and transform to CSV format - 516 entries

Turn this spreadsheet output into a CSV file but first swap the columns

  • Best score: 16
  • Best player score: 19
  • Position: #107 / 184
  • Number of attempts: 4
Change class fields from camel case to snake case - 678 entries

This is the reverse of the previous challenge: https://www.vimgolf.com/challenges/9v006705493c000000000513

  • Best score: 18
  • Best player score: 18
  • Position: #6 / 160
  • Number of attempts: 9
Change class fields from snake case to camel case - 336 entries

Change the class fields in this Scala class from snake case to camel case

  • Best score: 13
  • Best player score: 13
  • Position: #13 / 127
  • Number of attempts: 2
Reorganize Pokémon - 898 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 21
  • Position: #79 / 250
  • Number of attempts: 2
CaN yOuR ViM dO ThAt? #2 - 117 entries

Tsoding's famous "Can your Vim do that?" https://www.youtube.com/watch?v=F4xc4jQO7ck&t=1429s

  • Best score: 49
  • Best player score: 74
  • Position: #22 / 31
  • Number of attempts: 2
Move list of uuids into a SQL query - 254 entries

Take the list of UUIDs and use them as a filter in the where statement of a SQL query

  • Best score: 57
  • Best player score: 63
  • Position: #19 / 83
  • Number of attempts: 6
Markdown Blog Editing - 488 entries

Convert the given link text in start file to a markdown link list.

  • Best score: 30
  • Best player score: 53
  • Position: #76 / 119
  • Number of attempts: 1
Word completion - 329 entries

Try to complete these options within 20 keystrokes.

  • Best score: 20
  • Best player score: 21
  • Position: #15 / 87
  • Number of attempts: 7
Move to corresponding lines - 335 entries

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 27
  • Position: #45 / 77
  • Number of attempts: 1
Rearrange array to single level - 1832 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 19
  • Position: #79 / 308
  • Number of attempts: 4
Rearrange array to one line - 907 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 22
  • Position: #138 / 209
  • Number of attempts: 1
Format a long line - 134 entries

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

  • Best score: 17
  • Best player score: 18
  • Position: #14 / 37
  • Number of attempts: 5
months to html list items - 1156 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 23
  • Position: #51 / 313
  • Number of attempts: 3
Quicksort - 2114 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: #124 / 473
  • Number of attempts: 7
Tic-Tac-Toe Grid Transformation - 450 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: 56
  • Best player score: 153
  • Position: #64 / 88
  • Number of attempts: 4
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: 14
  • Position: #74 / 435
  • Number of attempts: 3
Reformat symbols in list - 1661 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 24
  • Position: #65 / 358
  • Number of attempts: 11
Many duplicates - 1489 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #319 / 484
  • Number of attempts: 4
hello-world-vimgolf - 2534 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #342 / 727
  • Number of attempts: 4
Simple, Practical, and Common - 34031 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: #2405 / 7520
  • Number of attempts: 8
Prime Numbers - 401 entries

List the first 100 prime numbers.

  • Best score: 34
  • Best player score: 153
  • Position: #91 / 109
  • Number of attempts: 7
Swap the operands under comparison - 325 entries

Swap the operands under comparison to prevent null pointer exception (at least in java)

  • Best score: 19
  • Best player score: 25
  • Position: #78 / 108
  • Number of attempts: 1
Add semicolons - 10966 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1794 / 3100
  • Number of attempts: 2
remove lines containing the word "reader" - 3659 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #872 / 1188
  • Number of attempts: 1
Box it - 8004 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Position: #819 / 1902
  • Number of attempts: 4
Extract argument from function - 2430 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 20
  • Position: #723 / 774
  • Number of attempts: 1
Just the middle - 11636 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3220 / 4262
  • Number of attempts: 2
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: 32
  • Position: #164 / 233
  • Number of attempts: 1
I forgot quotes - 16255 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #2066 / 4229
  • Number of attempts: 4
Letter case trickery - 1688 entries

This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.

  • Best score: 9
  • Best player score: 11
  • Position: #298 / 526
  • Number of attempts: 2
Ruby 1.9 hashes - 1315 entries

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

  • Best score: 12
  • Best player score: 12
  • Position: #114 / 421
  • Number of attempts: 8
Shebangs for all - 2105 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 12
  • Position: #171 / 534
  • Number of attempts: 12
Reconstruct the Sentence - 1761 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 19
  • Best player score: 24
  • Position: #341 / 460
  • Number of attempts: 7
Whitespace, empty lines and tabs - 4082 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 22
  • Position: #367 / 871
  • Number of attempts: 5
Simple text editing with Vim - 13681 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #2031 / 3919
  • Number of attempts: 4
Adi
Github:

entered into 35 challenges

contributed 0 challenges