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 - 1403 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 / 416
  • Number of attempts: 6
Insert column data on Confluence-style table - 458 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: #14 / 109
  • Number of attempts: 11
Surround the 'z' character with brackets, quotes, and print as formatted string. - 560 entries

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

  • Best score: 17
  • Best player score: 18
  • Position: #251 / 313
  • Number of attempts: 1
Paste a column after a column - 2537 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 / 553
  • Number of attempts: 9
Search and Replace 0 - 4999 entries

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

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

Align as one import per line.

  • Best score: 17
  • Best player score: 22
  • Position: #103 / 198
  • Number of attempts: 6
Braces or Brackets? - 1042 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 / 321
  • 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