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

Copy three lines - 2138 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 6
Vice versa - 6072 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 8
One to Ten - 1105 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: 1
I forgot quotes - 12173 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 9
Applying same text modification in several lines - 1805 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 5
Increment each number - 536 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 5
One number per line - 13430 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 26
  • Number of attempts: 2
Add semicolons - 2844 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 16
  • Number of attempts: 3
SCREAMING_SNAKE_CASE to Title Case - 115 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: 21
  • Number of attempts: 1
ASCII-art Histogram - 151 entries

Create an ASCCI-art histogram for the given numbers. Make sure not to leave trailing whitespaces. Thanks to VimGolf I recently discovered a feature of Vim thAT blew my mind. I'm curious to see what real ninjas make of it ;-)

  • Best score: 33
  • Best player score: 35
  • Number of attempts: 7
Extract wireshark capture filter - 102 entries

Extract wireshark capture filter from IP plan

  • Best score: 26
  • Best player score: 27
  • Number of attempts: 4
Box it - 3582 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 9
dpetrovic_vimgolf
Twitter:

entered into 12 challenges

contributed 0 challenges