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 - 1160 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: 14
  • Position: #4 / 351
  • Number of attempts: 6
Insert column data on Confluence-style table - 437 entries

Add ip addresses into new "IP" column based on the last digits from the "Server" column

  • Best score: 33
  • Best player score: 34
  • Position: #12 / 102
  • Number of attempts: 11
Surround the 'z' character with brackets, quotes, and print as formatted string. - 494 entries

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

  • Best score: 17
  • Best player score: 18
  • Position: #221 / 278
  • Number of attempts: 1
Paste a column after a column - 2314 entries

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

  • Best score: 14
  • Best player score: 14
  • Position: #55 / 501
  • Number of attempts: 9
Search and Replace 0 - 4808 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #706 / 1591
  • Number of attempts: 6
imports alignment (python) - 661 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 22
  • Position: #101 / 194
  • Number of attempts: 6
Braces or Brackets? - 906 entries

Someone forgot whether to use braces or brackets and you have to clean up their code!

  • Best score: 34
  • Best player score: 34
  • Position: #30 / 293
  • Number of attempts: 11
Glen Huang
Twitter:

My next project is to record how I made the project.

entered into 7 challenges

contributed 0 challenges