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

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

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

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

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

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

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

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 21
  • Position: #77 / 240
  • Number of attempts: 2
CaN yOuR ViM dO ThAt? #2 - 111 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: #20 / 29
  • Number of attempts: 2
Move list of uuids into a SQL query - 245 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: #18 / 82
  • Number of attempts: 6
Markdown Blog Editing - 485 entries

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

  • Best score: 30
  • Best player score: 53
  • Position: #74 / 117
  • Number of attempts: 1
Word completion - 310 entries

Try to complete these options within 20 keystrokes.

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

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 27
  • Position: #44 / 76
  • Number of attempts: 1
Rearrange array to single level - 1829 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: #78 / 307
  • Number of attempts: 4
Rearrange array to one line - 889 entries

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

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

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

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

Turn the months into list items.

  • Best score: 22
  • Best player score: 23
  • Position: #51 / 311
  • Number of attempts: 3
Quicksort - 2113 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 / 472
  • 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 - 1485 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 / 434
  • Number of attempts: 3
Reformat symbols in list - 1658 entries

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

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

Quick and easy

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

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #342 / 726
  • Number of attempts: 4
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: #2405 / 7513
  • 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 - 10956 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1793 / 3098
  • Number of attempts: 2
remove lines containing the word "reader" - 3652 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #870 / 1185
  • Number of attempts: 1
Box it - 8003 entries

Create a box around a line.

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

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

  • Best score: 13
  • Best player score: 20
  • Position: #722 / 772
  • Number of attempts: 1
Just the middle - 11616 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3218 / 4255
  • 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 - 16237 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #2063 / 4224
  • Number of attempts: 4
Letter case trickery - 1686 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: #297 / 525
  • Number of attempts: 2
Ruby 1.9 hashes - 1312 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 / 419
  • Number of attempts: 8
Shebangs for all - 2103 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 / 533
  • Number of attempts: 12
Reconstruct the Sentence - 1745 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: #338 / 457
  • Number of attempts: 7
Whitespace, empty lines and tabs - 4044 entries

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

  • Best score: 16
  • Best player score: 22
  • Position: #363 / 862
  • 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: 14
  • Position: #2028 / 3902
  • Number of attempts: 4
Adi
Github:

entered into 35 challenges

contributed 0 challenges