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

Simple, Practical, and Common - 33988 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
  • Position: #1824 / 7509
  • Number of attempts: 6
V to the i - 4866 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #662 / 1913
  • Number of attempts: 2
Add semicolons - 10955 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #57 / 3098
  • Number of attempts: 3
Split line with dots - 2174 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 19
  • Position: #351 / 638
  • Number of attempts: 1
Box it - 8002 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #120 / 1900
  • Number of attempts: 5
Tables, Functions, Sprocs - 147 entries

In order to load some scripts into my database in the correct order I need to load tables first (t_), then functions (fn_), then stored procedures (sp_). The order of the t_ lines and the order of the sp_ lines should also match. Reorder the lines so they will load correctly.

  • Best score: 10
  • Best player score: 10
  • Position: #9 / 52
  • Number of attempts: 3
Cool or not? - 857 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 18
  • Position: #134 / 236
  • Number of attempts: 2
Letterbox - 162 entries

Make a box!

  • Best score: 35
  • Best player score: 54
  • Position: #21 / 31
  • Number of attempts: 2
Flip the bit - 141 entries

Change the specific 0 to a 1.

  • Best score: 8
  • Best player score: 8
  • Position: #24 / 80
  • Number of attempts: 2
Order and join - 1030 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 11
  • Position: #129 / 264
  • Number of attempts: 4
One to Ten - 2249 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: #130 / 687
  • Number of attempts: 2
ASCII Art - 90 entries

how good are you with simple regex?

  • Best score: 10
  • Best player score: 10
  • Position: #28 / 56
  • Number of attempts: 6
Join 'em - 257 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 5
  • Position: #83 / 156
  • Number of attempts: 1
Reorder the groups - 1199 entries

Change the order so that the groups of fruit come before the vegetables.

  • Best score: 14
  • Best player score: 14
  • Position: #22 / 269
  • Number of attempts: 3
move titles next to url, in quotes - 562 entries

had trouble with something similar

  • Best score: 19
  • Best player score: 19
  • Position: #2 / 148
  • Number of attempts: 6
I forgot quotes - 16187 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1884 / 4222
  • Number of attempts: 3
-a-b-c- - 3240 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Position: #710 / 1146
  • Number of attempts: 2
Groups magic - 168 entries

Regexp or macros for string converting: (a) -> ___ (abc) -> ____ (abcd) -> ______ All in the '(' replace to _ multiply by char count + ()

  • Best score: 13
  • Best player score: 13
  • Position: #15 / 98
  • Number of attempts: 2
switch variable - 5121 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1241 / 1762
  • Number of attempts: 2
hodenkobold66
Twitter:

entered into 19 challenges

contributed 0 challenges