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

delete swap - 1788 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #269 / 557
  • Number of attempts: 1
Put a newline after every 10 lines in vim - 1660 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #36 / 558
  • Number of attempts: 6
Every other line - 2916 entries

AaAaAaA

  • Best score: 12
  • Best player score: 22
  • Position: #656 / 705
  • Number of attempts: 1
comment and uncomment code inline - 1130 entries

It's very useful to be able to comment out a block of code in a quick edit. And likewise to uncomment the code. This operation often involves multi-line stanzas and even large blocks. With just line-wise navigation and insert mode this would cost you about 4 keystrokes per line. Master this hole of VimGolf and you'll quickly drop your key count in day to day Vim as well.

  • Best score: 9
  • Best player score: 9
  • Position: #155 / 324
  • Number of attempts: 5
A HAPPY NEW YEAR 2014 ! - 10688 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1597 / 3691
  • Number of attempts: 3
Eduardo Cassiano 🍥
Twitter2:

📗 Estudante; 📕 Professor; 💻 Programador; 🎥 Fã do Ghibli e anime; 👾 Jogador de videojogos; 🎴 Lê gibizinho japonês; ❌ Não aprecia listas e ironias.

entered into 5 challenges

contributed 0 challenges