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

Data reformat - 241 entries

Reformat this copy-paste data! #csv

  • Best score: 38
  • Best player score: 38
  • Position: #6 / 57
  • Number of attempts: 7
xrandr outputs and dashes - 607 entries

uh oh, different video drivers identify display outputs with more dashes. Quick, need to change this xrandr script!

  • Best score: 12
  • Best player score: 12
  • Position: #36 / 195
  • Number of attempts: 1
Simple, Practical, and Common - 32992 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: #609 / 7283
  • Number of attempts: 10
prepend * to every non-blank line - 6030 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #203 / 1477
  • Number of attempts: 6
One number per line - 18426 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #264 / 3799
  • Number of attempts: 9
Quote modules - 1019 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 22
  • Position: #57 / 260
  • Number of attempts: 6
V to the i - 4645 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #731 / 1859
  • Number of attempts: 4
Applying same text modification in several lines - 2763 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #227 / 818
  • Number of attempts: 5
Refactor typescript arrow function type - 289 entries

Make arrow function type less verbose and easier to read

  • Best score: 20
  • Best player score: 32
  • Position: #57 / 64
  • Number of attempts: 1
Add semicolons - 10707 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #566 / 3013
  • Number of attempts: 3
Com(m)a Trouble - 3438 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 13
  • Position: #286 / 768
  • Number of attempts: 6
Box it - 7696 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 27
  • Position: #1152 / 1838
  • Number of attempts: 2
Cool or not? - 761 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 16
  • Position: #113 / 216
  • Number of attempts: 2
multiple cursor alternative - 1448 entries

from: https://www.reddit.com/r/vim/comments/6w5pfa/crosspost_from_remacs_how_would_you_do_this_in_vim/

  • Best score: 19
  • Best player score: 19
  • Position: #87 / 370
  • Number of attempts: 9
Every other line - 2839 entries

AaAaAaA

  • Best score: 12
  • Best player score: 13
  • Position: #253 / 688
  • Number of attempts: 8
Just the middle - 11261 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2245 / 4135
  • Number of attempts: 1
Interweave two blocks of text - 610 entries

Suppose you've got data on a list of things from multiple sources. They're all in separate chunks, so how might you create a tabular output?

  • Best score: 15
  • Best player score: 15
  • Position: #16 / 207
  • Number of attempts: 3
Remember VimGolf Rules ! - 239 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 8
  • Position: #111 / 129
  • Number of attempts: 2
Simple addition - 297 entries

The right side of the equation is already there. We just need the left one now.

  • Best score: 12
  • Best player score: 12
  • Position: #47 / 111
  • Number of attempts: 3
Nesting SASS - 255 entries

Move a block inside another block and indent it

  • Best score: 9
  • Best player score: 9
  • Position: #31 / 89
  • Number of attempts: 2
Vice versa - 7563 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #300 / 2054
  • Number of attempts: 8
C Reformatting - 686 entries

You may use Visual mode... or not. #uppercase

  • Best score: 30
  • Best player score: 32
  • Position: #31 / 159
  • Number of attempts: 7
Hello ${world} - 293 entries

Migrate a JavaScript String from concatenation to ES6 interpolation.

  • Best score: 24
  • Best player score: 24
  • Position: #12 / 92
  • Number of attempts: 4
Change part of a function name in multiple occurrences - 606 entries

Change the middle part of the function name in multiple places, preferably using the next and dot commands.

  • Best score: 14
  • Best player score: 15
  • Position: #114 / 193
  • Number of attempts: 4
Array transposition - 2312 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 17
  • Position: #56 / 431
  • Number of attempts: 6
I forgot quotes - 15769 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #444 / 4119
  • Number of attempts: 7
-a-b-c- - 3125 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 14
  • Position: #402 / 1114
  • Number of attempts: 5
A HAPPY NEW YEAR 2014 ! - 10555 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1524 / 3642
  • Number of attempts: 3
Change The Perspective - 36 entries

This is a go game recodes file(.sgf file, refer to http://www.red-bean.com/sgf/). It base on such a coordinate system: in vertical direction, is from top(farthest end) to bottom, mark as a,b,c,...,s(19*19 board); in horizontal direction, is from left to right, uses the same notations. For Example, the coordinate notation 'cq', is the position at the bottom-left corner(vertical coordinate first). The record is from one player's perspective. We need to change to another's, but we don't want to change coordinate system, let it keep top to bottom and left to right. so we have to change the coordinates, a <-> s, b <-> r,c <-> q, etc. the Position 'cq', as transformation, it will be 'qd'.

  • Best score: 33
  • Best player score: 54
  • Position: #21 / 22
  • Number of attempts: 1
Words in parens - 12769 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #1095 / 3925
  • Number of attempts: 5
Whitespace, empty lines and tabs - 3041 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 16
  • Position: #19 / 672
  • Number of attempts: 11
Karol Łukaszewicz
Twitter:

entered into 31 challenges

contributed 0 challenges