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

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 9
Interweave two blocks of text - 522 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
  • Number of attempts: 3
Data reformat - 132 entries

Reformat this copy-paste data! #csv

  • Best score: 38
  • Best player score: 38
  • Number of attempts: 7
Hello ${world} - 256 entries

Migrate a JavaScript String from concatenation to ES6 interpolation.

  • Best score: 24
  • Best player score: 24
  • Number of attempts: 4
I forgot quotes - 15117 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 7
Cool or not? - 698 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 16
  • Number of attempts: 2
Nesting SASS - 240 entries

Move a block inside another block and indent it

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 2
V to the i - 4505 entries

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

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 4
Quote modules - 827 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 22
  • Number of attempts: 6
Change part of a function name in multiple occurrences - 568 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
  • Number of attempts: 4
multiple cursor alternative - 1375 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
  • Number of attempts: 9
Com(m)a Trouble - 3030 entries

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

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 6
Simple, Practical, and Common - 31659 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
  • Number of attempts: 10
Box it - 7079 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 27
  • Number of attempts: 2
xrandr outputs and dashes - 386 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
  • Number of attempts: 1
Simple addition - 261 entries

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

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 3
Every other line - 2680 entries

AaAaAaA

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 8
Just the middle - 10814 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
Applying same text modification in several lines - 2584 entries

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

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 5
Remember VimGolf Rules ! - 216 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 2
C Reformatting - 665 entries

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

  • Best score: 30
  • Best player score: 32
  • Number of attempts: 7
Refactor typescript arrow function type - 216 entries

Make arrow function type less verbose and easier to read

  • Best score: 20
  • Best player score: 32
  • Number of attempts: 1
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
  • Number of attempts: 1
Array transposition - 2120 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 17
  • Number of attempts: 6
-a-b-c- - 3004 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 5
Add semicolons - 9283 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 3
prepend * to every non-blank line - 4787 entries

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

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 6
Vice versa - 7146 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 8
Whitespace, empty lines and tabs - 2733 entries

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

  • Best score: 16
  • Best player score: 16
  • Number of attempts: 11
Words in parens - 12369 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 5
A HAPPY NEW YEAR 2014 ! - 10319 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 3
Karol Łukaszewicz
Twitter:

entered into 31 challenges

contributed 0 challenges