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

Find fix point of cos - 648 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 15
  • Position: #70 / 181
  • Number of attempts: 2
Surround the 'z' character with brackets, quotes, and print as formatted string. - 335 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 17
  • Position: #86 / 176
  • Number of attempts: 1
Paste a column after a column - 1676 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 16
  • Position: #114 / 366
  • Number of attempts: 9
HS exam question - 1275 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 90
  • Position: #258 / 347
  • Number of attempts: 1
Reformat symbols in list - 1210 entries

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

  • Best score: 24
  • Best player score: 25
  • Position: #79 / 274
  • Number of attempts: 5
Substraction (bis) - 452 entries

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

  • Best score: 22
  • Best player score: 23
  • Position: #27 / 92
  • Number of attempts: 13
Poorly indented Python comments - 977 entries

Fix the alignment of some Python comments as quickly as possible.

  • Best score: 15
  • Best player score: 16
  • Position: #43 / 179
  • Number of attempts: 20
Many duplicates - 1048 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #210 / 341
  • Number of attempts: 4
2 quick changes and a numbered list - 507 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: #25 / 122
  • Number of attempts: 11
delete swap - 1268 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #243 / 403
  • Number of attempts: 9
Generate a very basic Python constructor (fixed) - 1008 entries

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

  • Best score: 29
  • Best player score: 29
  • Position: #49 / 221
  • Number of attempts: 12
Fix the shell script! - 1852 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 27
  • Position: #99 / 450
  • Number of attempts: 7
Visual block training - 842 entries

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

  • Best score: 17
  • Best player score: 28
  • Position: #65 / 155
  • Number of attempts: 14
Put a newline after every 10 lines in vim - 1426 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #164 / 481
  • Number of attempts: 3
Wikitext headings to markdown - 854 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 21
  • Position: #56 / 181
  • Number of attempts: 17
hello-world-vimgolf - 2125 entries

Simple number generation

  • Best score: 10
  • Best player score: 11
  • Position: #352 / 601
  • Number of attempts: 5
Contribute to keyboard mashing - 758 entries

Speak in tongues

  • Best score: 17
  • Best player score: 18
  • Position: #95 / 236
  • Number of attempts: 3
Fill in the chess board - 782 entries

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

  • Best score: 19
  • Best player score: 20
  • Position: #41 / 161
  • Number of attempts: 13
Plotting some variables in python - 1431 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

  • Best score: 34
  • Best player score: 36
  • Position: #79 / 305
  • Number of attempts: 4
Transpose a python matrix - 717 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 24
  • Position: #33 / 121
  • Number of attempts: 17
Increment number for every 10 lines - 189 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: 28
  • Position: #21 / 54
  • Number of attempts: 9
simple replacements - 1301 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 20
  • Position: #113 / 292
  • Number of attempts: 6
Inverting Lines - 1637 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 10
  • Position: #191 / 444
  • Number of attempts: 3
Python dataclasses - 828 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 20
  • Position: #84 / 217
  • Number of attempts: 4
RUST Cargo.toml version to last - 308 entries

RUST Cargo.toml version to last. rusty practice on vimgolf

  • Best score: 16
  • Best player score: 17
  • Position: #50 / 91
  • Number of attempts: 5
Making 3 line function a one liner. - 290 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #152 / 183
  • Number of attempts: 1
Modernise code - 1208 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 35
  • Position: #85 / 283
  • Number of attempts: 6
naka
Twitter2:

entered into 27 challenges

contributed 0 challenges