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 number per line - 18749 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 26
  • Position: #3437 / 3867
  • Number of attempts: 2
Applying same text modification in several lines - 2882 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #405 / 852
  • Number of attempts: 5
SCREAMING_SNAKE_CASE to Title Case - 1214 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
  • Position: #121 / 249
  • Number of attempts: 1
Add semicolons - 10872 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 16
  • Position: #2390 / 3067
  • Number of attempts: 3
Extract wireshark capture filter - 216 entries

Extract wireshark capture filter from IP plan

  • Best score: 25
  • Best player score: 27
  • Position: #30 / 72
  • Number of attempts: 4
Box it - 7909 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #172 / 1878
  • Number of attempts: 9
Copy three lines - 2872 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #134 / 640
  • Number of attempts: 6
Vice versa - 7922 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #486 / 2132
  • Number of attempts: 8
One to Ten - 2220 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
  • Position: #163 / 673
  • Number of attempts: 1
Increment each number - 1023 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 15
  • Position: #34 / 248
  • Number of attempts: 5
I forgot quotes - 15997 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #911 / 4184
  • Number of attempts: 9
ASCII-art Histogram - 320 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
  • Position: #24 / 57
  • Number of attempts: 7
dpetrovic_vimgolf
Twitter:

entered into 12 challenges

contributed 0 challenges