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

Reorganize Pokémon - 236 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 25
  • Position: #61 / 65
  • Number of attempts: 1
Replace csv column if it's not empty - 78 entries

Replace the credit_score_percentile column with the value 0.0 but leave the empty ones untouched

  • Best score: 15
  • Best player score: 55
  • Position: #31 / 32
  • Number of attempts: 1
Fix timezone format - 215 entries

Add the missing T and Z in the datetime field. There should be a T instead of the space, and a Z at the end of the datetime. `2024-08-31 18:32:00;` -> `2024-08-31T18:32:00Z;`

  • Best score: 15
  • Best player score: 21
  • Position: #60 / 71
  • Number of attempts: 1
Rearrange array to one line - 578 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 25
  • Position: #105 / 141
  • Number of attempts: 1
Quicksort - 1898 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 31
  • Position: #332 / 419
  • Number of attempts: 1
Find fix point of cos - 1388 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: 23
  • Position: #326 / 407
  • Number of attempts: 1
HS exam question - 1578 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 71
  • Position: #212 / 416
  • Number of attempts: 1
Changing around text with citations - 329 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 43
  • Position: #68 / 93
  • Number of attempts: 2
Visual block training - 1070 entries

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

  • Best score: 17
  • Best player score: 40
  • Position: #118 / 204
  • Number of attempts: 1
Put a newline after every 10 lines in vim - 1657 entries

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

  • Best score: 10
  • Best player score: 15
  • Position: #471 / 556
  • Number of attempts: 1
Fill in the chess board - 958 entries

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

  • Best score: 19
  • Best player score: 41
  • Position: #120 / 184
  • Number of attempts: 2
Plotting some variables in python - 1661 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: 50
  • Position: #212 / 348
  • Number of attempts: 1
Transpose a python matrix - 873 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 48
  • Position: #80 / 138
  • Number of attempts: 2
Increment number for every 10 lines - 230 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: 61
  • Position: #46 / 64
  • Number of attempts: 1
BrandonChenZT
Github:

entered into 14 challenges

contributed 0 challenges