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

Reformat symbols in list - 669 entries

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

  • Best score: 24
  • Best player score: 25
  • Position: #28 / 152
  • Number of attempts: 5
Substraction (bis) - 303 entries

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

  • Best score: 22
  • Best player score: 27
  • Position: #22 / 68
  • Number of attempts: 13
Many duplicates - 613 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #106 / 213
  • Number of attempts: 3
2 quick changes and a numbered list - 359 entries

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

  • Best score: 37
  • Best player score: 38
  • Position: #29 / 88
  • Number of attempts: 8
Generate a very basic Python constructor (fixed) - 848 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: #32 / 184
  • Number of attempts: 8
Put a newline after every 10 lines in vim - 1171 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #123 / 404
  • Number of attempts: 4
hello-world-vimgolf - 1768 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #36 / 509
  • Number of attempts: 4
Contribute to keyboard mashing - 698 entries

Speak in tongues

  • Best score: 17
  • Best player score: 17
  • Position: #11 / 215
  • Number of attempts: 5
Transpose a python matrix - 629 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 24
  • Position: #18 / 112
  • Number of attempts: 5
simple replacements - 1177 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 22
  • Position: #124 / 262
  • Number of attempts: 4
Inverting Lines - 1447 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #79 / 396
  • Number of attempts: 3
RUST Cargo.toml version to last - 252 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #19 / 74
  • Number of attempts: 6
대법원 인명용 한자 바인딩(Combine Hangul and Chinese characters) - 24 entries

The character system of Chinese characters has caused difficulties in character encoding for a long time. The content is to link the Korean name and the corresponding Chinese character. input is simply pasted Chinese table, and you need to make it in json format. Most of them are omitted because there are too many Chinese characters, but I think it's better to work from "가" to "힐". There are a few rules here. 1. One Hangul must correspond to multiple Chinese characters. 2. In the case of "a(b c)", "a" is a redundant Chinese character, so you must remove "a" and use only "b c". 3. There are some characters here that don't appear to be an encoding issue, but they should all be used. 4. Should follow json format, Chinese characters are arrays. 문자인코딩의 역사속에서 한문은 여러가지 난제를 만들어왔습니다. 이 문제는 대법원 인명용 한자를 바인딩하는 것입니다. input은 단순히 인명용한자 표를 붙여넣기 한 것이며, 이것을 json형식으로 만들어야합니다. 한자가 너무 많은 관계로 대부분을 생략하였으나, 기본적으로 "가"부터 "힐"까지 모두 동작하는 것이 좋다고 생각합니다. 여기에는 몇가지 규칙이 있습니다. 1. 한글 하나에는 여러개의 한자가 대응합니다. 2. "a(b c)"같은 경우 "a"는 중복된 한자이므로, "a"를 제거하고 "b c"만을 사용해야합니다. 3. 몇몇 한자는 인코딩의 문제로 보이지 않을 수 있습니다. 그러나 모두 사용해야합니다. 4. json형식을 따르며, 한자는 배열입니다.

  • Best score: 69
  • Best player score: 69
  • Position: #1 / 4
  • Number of attempts: 5
swap number pairs - 1675 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #90 / 313
  • Number of attempts: 10
Capitalize the Names - 328 entries

I want to capitalize the names in quotes, but just the people's names, not the file names.

  • Best score: 21
  • Best player score: 26
  • Position: #48 / 83
  • Number of attempts: 8
Yo To Hello - 1066 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #53 / 489
  • Number of attempts: 3
Simple, Practical, and Common - 33029 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: #2165 / 7290
  • Number of attempts: 12
prepend * to every non-blank line - 6061 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #790 / 1481
  • Number of attempts: 4
One number per line - 18439 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #657 / 3802
  • Number of attempts: 11
Prime Numbers - 337 entries

List the first 100 prime numbers.

  • Best score: 34
  • Best player score: 39
  • Position: #26 / 98
  • Number of attempts: 10
Split line with dots - 2113 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 22
  • Position: #466 / 625
  • Number of attempts: 5
remove lines containing the word "reader" - 3480 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #797 / 1127
  • Number of attempts: 9
Wrap the text of an email message to 79 characters - 608 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 5
  • Position: #272 / 363
  • Number of attempts: 2
Box it - 7718 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 24
  • Position: #917 / 1841
  • Number of attempts: 8
Every other line - 2850 entries

AaAaAaA

  • Best score: 12
  • Best player score: 16
  • Position: #403 / 690
  • Number of attempts: 3
Search and Replace 0 - 4722 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #699 / 1562
  • Number of attempts: 3
Basic renumbering - 5477 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 15
  • Position: #518 / 1238
  • Number of attempts: 3
One to Ten - 2116 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: #279 / 647
  • Number of attempts: 5
Put the months in order - 922 entries

Our contractor thought that months should be in alphabetical order. Put them in calendar order please.

  • Best score: 20
  • Best player score: 31
  • Position: #51 / 156
  • Number of attempts: 8
Restore order to the alphabet - 183 entries

The numbers are OK. The letters are wonky.

  • Best score: 12
  • Best player score: 22
  • Position: #49 / 66
  • Number of attempts: 4
convert yml into java pojo field - 823 entries

How fast vim can create fields for java pojo i.e class declaration referring to a (simple) yml file

  • Best score: 29
  • Best player score: 29
  • Position: #89 / 220
  • Number of attempts: 7
Not enough Ps - 66 entries

Different type of code

  • Best score: 13
  • Best player score: 13
  • Position: #22 / 35
  • Number of attempts: 3
Merge blank lines and properly capitalize - 69 entries

Here you need complete 2 tasks: 1. Remove all unwanted continuous blank lines and leave only 1 blank line between paragraphs. 2. Properly capitalize the sentences.

  • Best score: 21
  • Best player score: 42
  • Position: #15 / 21
  • Number of attempts: 3
Simple Maths - 36 entries

Not much to say, discover by yourself!

  • Best score: 26
  • Best player score: 35
  • Position: #16 / 24
  • Number of attempts: 2
Subtraction - 177 entries

Solve the equations.

  • Best score: 18
  • Best player score: 22
  • Position: #28 / 60
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10560 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2429 / 3645
  • Number of attempts: 1
Words in parens - 12775 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #1091 / 3926
  • Number of attempts: 2
switch variable - 4974 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Position: #1423 / 1715
  • Number of attempts: 2
Make it more readable - 1923 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 14
  • Position: #195 / 632
  • Number of attempts: 3
A Simple One - 968 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #546 / 629
  • Number of attempts: 1
82 bottles of beer on the wall - 293 entries

Take them down. (sorry, only 82 bottles because the problem size is limited!)

  • Best score: 107
  • Best player score: 137
  • Position: #92 / 137
  • Number of attempts: 1
Increment, increment, increment.... - 600 entries

Vim likes macros

  • Best score: 10
  • Best player score: 10
  • Position: #50 / 382
  • Number of attempts: 3
Dumb to smart - 91 entries

Turn dumb quote to smart vim's way.

  • Best score: 28
  • Best player score: 28
  • Position: #8 / 53
  • Number of attempts: 1
The Cake is a Lie - 1238 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 9
  • Position: #267 / 497
  • Number of attempts: 4
Remove Accent off the Letter - 103 entries

Remove all the accent from extremely accented statements.

  • Best score: 37
  • Best player score: 73
  • Position: #36 / 48
  • Number of attempts: 1
Compile C - 341 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 19
  • Position: #18 / 126
  • Number of attempts: 7
Make Fancy Header - 985 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 17
  • Position: #207 / 333
  • Number of attempts: 4
Reformat some Python - 565 entries

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 40
  • Position: #91 / 223
  • Number of attempts: 1
Simple text editing with Vim - 11753 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Position: #1875 / 3447
  • Number of attempts: 3
loupiot.veloce
Twitter:

Accompagnement formations

entered into 49 challenges

contributed 0 challenges