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

HS exam question - 905 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 47
  • Position: #7 / 247
  • Number of attempts: 19
Reformat symbols in list - 806 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 24
  • Position: #18 / 180
  • Number of attempts: 7
Fizzbuzz - 267 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 47
  • Best player score: 47
  • Position: #10 / 89
  • Number of attempts: 9
Substraction (bis) - 311 entries

Solve the equations (adapted from the original @Caek_'s challenge).

  • Best score: 22
  • Best player score: 233
  • Position: #67 / 69
  • Number of attempts: 2
Changing around text with citations - 181 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 28
  • Position: #12 / 53
  • Number of attempts: 9
Many duplicates - 719 entries

Quick and easy

  • Best score: 7
  • Best player score: 7
  • Position: #9 / 242
  • Number of attempts: 5
2 quick changes and a numbered list - 384 entries

The ascii will not be lost, but rather numbered in 4 digit blocks with leading zeros.

  • Best score: 37
  • Best player score: 37
  • Position: #16 / 94
  • Number of attempts: 14
delete swap - 830 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #86 / 279
  • Number of attempts: 7
Generate a very basic Python constructor (fixed) - 879 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 37
  • Position: #69 / 193
  • Number of attempts: 17
Fix the shell script! - 1514 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 26
  • Position: #35 / 373
  • Number of attempts: 12
Visual block training - 689 entries

You see the input. You see the output. Go.

  • Best score: 17
  • Best player score: 156
  • Position: #128 / 132
  • Number of attempts: 1
Put a newline after every 10 lines in vim - 1228 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 13
  • Position: #293 / 423
  • Number of attempts: 11
Wikitext headings to markdown - 737 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 20
  • Position: #28 / 164
  • Number of attempts: 19
hello-world-vimgolf - 1850 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #219 / 526
  • Number of attempts: 5
Contribute to keyboard mashing - 718 entries

Speak in tongues

  • Best score: 17
  • Best player score: 18
  • Position: #86 / 221
  • Number of attempts: 5
Fill in the chess board - 700 entries

Fill in the name of each square using its file (a-h) and rank (1-8).

  • Best score: 19
  • Best player score: 19
  • Position: #23 / 147
  • Number of attempts: 29
Learn to ask for :help - 453 entries

Learn to use the help to reduce your strokes...

  • Best score: 19
  • Best player score: 34
  • Position: #67 / 103
  • Number of attempts: 7
Increment number for every 10 lines - 177 entries

The file consists of 2 columns (code and percentage). We need to add 2 more columns with increasing number for 4th column (Xcols) and increment 3rd column (Ycols) only for every 10 lines with reset of 4th column

  • Best score: 25
  • Best player score: 112
  • Position: #49 / 51
  • Number of attempts: 3
Python dataclasses - 729 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 19
  • Position: #48 / 188
  • Number of attempts: 13
Making 3 line function a one liner. - 205 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #107 / 135
  • Number of attempts: 1
Modernise code - 1032 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 42
  • Position: #116 / 235
  • Number of attempts: 18
Staircase - 81 entries

Going downstairs, while singing the alphabet song. Some vb practice to us all. Would it be much easier to make it go from left to right instead?

  • Best score: 21
  • Best player score: 21
  • Position: #2 / 24
  • Number of attempts: 16
swap number pairs - 1808 entries

Swap the numbers in a bunch of 2-element arrays.

  • Best score: 16
  • Best player score: 16
  • Position: #45 / 332
  • Number of attempts: 12
Alex Lewin
Twitter:

#bitcoin Looking for cool stuff to work on. Orange pilling the next billion. @blockspaces_io @terminusbtc @atlantabitdevs | former @NCRCorporation

entered into 23 challenges

contributed 0 challenges