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

One to Ten - 1845 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: 12
  • Number of attempts: 3
Box it - 6830 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 10
I forgot quotes - 14977 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 9
One number per line - 17283 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 22
  • Number of attempts: 3
Simple, Practical, and Common - 31331 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
  • Number of attempts: 7
Line under headers - 1628 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 24
  • Best player score: 27
  • Number of attempts: 4
prepend * to every non-blank line - 4436 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 6
A HAPPY NEW YEAR 2014 ! - 10271 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 2
Back to the Future - 3 entries

We can't just time-travel around without first making sure our code is pretty and columns are aligned. And keeping lines with at most 80 characters should help if we ever need to review the code while we're stuck in the past. This is my first challenge. I tried being creative and even did a bit of research, so I hope you enjoy it.

  • Best score: 127
  • Best player score: 208
  • Number of attempts: 2
remove lines containing the word "reader" - 3172 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 7
SCREAMING_SNAKE_CASE to Title Case - 877 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: 19
  • Number of attempts: 11
Add semicolons - 9002 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 6
V to the i - 4462 entries

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

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 2

Contributed Challenges

Back to the Future - 3 entries

We can't just time-travel around without first making sure our code is pretty and columns are aligned. And keeping lines with at most 80 characters should help if we ever need to review the code while we're stuck in the past. This is my first challenge. I tried being creative and even did a bit of research, so I hope you enjoy it.

Micael Jarniac
Twitter:

Micael Jarniac - fotografia e filmagem Contato: 📱 (19) 99953-1994 (WhatsApp e ligação) 📧 micael@jarniac.com

entered into 13 challenges

contributed 1 challenges