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

CSV to MD format - 190 entries

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 61
  • Position: #22 / 49
  • Number of attempts: 1
HS Final exam vimgolf - 578 entries

Change the initial file to a single line containing all names comma-separated with numbers inside parentheses.

  • Best score: 21
  • Best player score: 32
  • Position: #97 / 156
  • Number of attempts: 3
Python: Def to Lambda - 221 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 22
  • Position: #66 / 80
  • Number of attempts: 2
Rural Post - 3807 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 13
  • Position: #549 / 940
  • Number of attempts: 2
Multiline to Single Line - 380 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 5
  • Position: #109 / 180
  • Number of attempts: 3
Get mail address from outlook format - 560 entries

Create a mail list space separated of mail list formatted by outlook

  • Best score: 15
  • Best player score: 31
  • Position: #164 / 173
  • Number of attempts: 1
prepend * to every non-blank line - 5829 entries

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

  • Best score: 10
  • Best player score: 16
  • Position: #1002 / 1434
  • Number of attempts: 2
Separate the lines - 153 entries

Every other line is mixed up. Separate them into their original texts.

  • Best score: 11
  • Best player score: 11
  • Position: #50 / 83
  • Number of attempts: 6
Add semicolons - 10467 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1696 / 2966
  • Number of attempts: 3
remove lines containing the word "reader" - 3436 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #819 / 1113
  • Number of attempts: 3
Simple addition - 288 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: #51 / 105
  • Number of attempts: 5
Array of characters - 133 entries

We all copy paste things off the internet, but the syntax doesn't look right. Fix it as fast as possible.

  • Best score: 33
  • Best player score: 52
  • Position: #38 / 40
  • Number of attempts: 1
Generate a list of numbers - 269 entries

Please generate list of numbers from 1 to 20.

  • Best score: 14
  • Best player score: 15
  • Position: #105 / 127
  • Number of attempts: 3
Separating firstname & lastname - 109 entries

Seperate named with equal tabs.

  • Best score: 19
  • Best player score: 23
  • Position: #20 / 51
  • Number of attempts: 1
Simple format (2) - 306 entries

try again!

  • Best score: 23
  • Best player score: 38
  • Position: #52 / 64
  • Number of attempts: 2
camel riding - 737 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 18
  • Position: #228 / 264
  • Number of attempts: 2
Config Sections - 38 entries

Section me!

  • Best score: 43
  • Best player score: 46
  • Position: #7 / 18
  • Number of attempts: 3
Square numbers - 81 entries

Boring math puzzle.

  • Best score: 16
  • Best player score: 25
  • Position: #18 / 34
  • Number of attempts: 6
It's a factor - 85 entries

Flaunt your macro prowess by factoring some numbers. Too hard? It takes less than 30 strokes, I promise.

  • Best score: 25
  • Best player score: 25
  • Position: #4 / 35
  • Number of attempts: 2
Alphabet soup - 354 entries

Create a column of all alphabet characters organized in a funky way

  • Best score: 25
  • Best player score: 25
  • Position: #10 / 84
  • Number of attempts: 7
Simple text editing with Vim - 11449 entries

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

  • Best score: 13
  • Best player score: 15
  • Position: #1930 / 3362
  • Number of attempts: 1

Contributed Challenges

CSV to MD format - 190 entries

To convert a CSV list to Markdown list

Increment number for every 10 lines - 118 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

Selvaganapathy P
Twitter:

entered into 21 challenges

contributed 2 challenges