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

Make HTML List - 917 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 42
  • Number of attempts: 5
SCREAMING_SNAKE_CASE to Title Case - 737 entries

Convert strings in SCREAMING_SNAKE_CASE to Title Case. Examples: EMPLOYEE_NAME -> Employee Name REVENUE_YEAR_TO_DATE -> Revenue Year To Date SALARY -> Salary

  • Best score: 19
  • Best player score: 34
  • Number of attempts: 3
Remove quotes after first field - 212 entries

Remove the quotes around each field except for the first field.

  • Best score: 16
  • Best player score: 26
  • Number of attempts: 2
One number per line - 15522 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 23
  • Number of attempts: 9
Vertical Limit - 2207 entries

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

  • Best score: 21
  • Best player score: 23
  • Number of attempts: 9
I forgot quotes - 13700 entries

Oops.

  • Best score: 10
  • Best player score: 21
  • Number of attempts: 3
Swap values - 4015 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 8
Team names - 1596 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 16
  • Number of attempts: 12
Bad Copy Syntax - 1483 entries

Copy should be from right to left, but sometimes you type it wrong.

  • Best score: 19
  • Best player score: 19
  • Number of attempts: 18
comment and uncomment code inline - 911 entries

It's very useful to be able to comment out a block of code in a quick edit. And likewise to uncomment the code. This operation often involves multi-line stanzas and even large blocks. With just line-wise navigation and insert mode this would cost you about 4 keystrokes per line. Master this hole of VimGolf and you'll quickly drop your key count in day to day Vim as well.

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 6
citizen_hacks_2019_challenge5 - 88 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 6
  • Number of attempts: 2
Just the middle - 10074 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 6
Words in parens - 11783 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 10
Box it - 5466 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 162
  • Number of attempts: 1
Join 'em - 191 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 5
  • Number of attempts: 1
Com(m)a Trouble - 2523 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 28
Simple, Practical, and Common - 28782 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: 28
  • Number of attempts: 5
Fiddle percentages into real numbers - 756 entries

Get rid of the '%' symbols and shift the decimal place. This is the easier version - all the columns line up.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 3
Add semicolons - 6723 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 11
Extract argument from function - 2103 entries

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

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 4
Space out the alphabet - 1449 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 9
Order and join - 796 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 4
quotes inside quotes - 2909 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 6
That hyphen - 2312 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 6
Swap values inside brackets - 2043 entries

Easy challenge.

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 11
Vice versa - 6646 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 12
move titles next to url, in quotes - 391 entries

had trouble with something similar

  • Best score: 19
  • Best player score: 20
  • Number of attempts: 7
Missing Library and a Typo - 777 entries

I forgot to add a c library, please add it for me. Also I'm bad at typing so fix my typo too.

  • Best score: 15
  • Best player score: 17
  • Number of attempts: 15
remove lines containing the word "reader" - 2581 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 14
One to Ten - 1632 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: 19
  • Number of attempts: 10
임덕윤
Twitter:

덕두

entered into 30 challenges

contributed 0 challenges