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

Just give me the numbers.

  • Best score: 14
  • Best player score: 26
  • Position: #3373 / 3787
  • Number of attempts: 2
Applying same text modification in several lines - 2748 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #382 / 815
  • Number of attempts: 5
SCREAMING_SNAKE_CASE to Title Case - 1117 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: #111 / 232
  • Number of attempts: 1
Add semicolons - 10539 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 16
  • Position: #2321 / 2988
  • Number of attempts: 3
Extract wireshark capture filter - 177 entries

Extract wireshark capture filter from IP plan

  • Best score: 25
  • Best player score: 27
  • Position: #26 / 57
  • Number of attempts: 4
Box it - 7680 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #173 / 1835
  • Number of attempts: 9
Copy three lines - 2794 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 / 625
  • Number of attempts: 6
Vice versa - 7520 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #486 / 2043
  • Number of attempts: 8
One to Ten - 2093 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 / 641
  • Number of attempts: 1
Increment each number - 946 entries

Increment each number individually by one

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

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #912 / 4114
  • Number of attempts: 9
ASCII-art Histogram - 285 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: #20 / 51
  • Number of attempts: 7
dpetrovic_vimgolf
Twitter:

entered into 12 challenges

contributed 0 challenges