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 55b18bbea9c2c30d04000001

Simple, Practical, and Common

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

Start file
*temp var1 0
*temp var2 "hi"
*temp var3 -1
*temp var4 42
*temp var5 "asdf"
*temp var6 0

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way."

This challenge is just a simple movement and entering text at a certain place.
End file
*temp var1 0
*temp var2 "hi"
*temp var3 -1
*temp var4 42
*temp var5 "asdf"
*temp var6 0
*temp var7 11

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way."

New text.

This challenge is just a simple movement and entering text at a certain place.

View Diff

6a7
> *temp var7 11
8a10,11
> 
> New text.

Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 6726 remaining solutions by signing in and submitting your own entry
#6727 Yushia Sou / @yuessiah - Score: 427 - 05/08/19 @ 16:47
VG<C-P><Esc><Esc>kkkkkkkkkkkVjjjjjjjjjjjjjjjjjjxi<50-53>*temp var1 0<CR>*temp var2 "hi"<CR>*temp var3 -1<CR>*temp var4 42<CR>*temp var5 "asdf"<CR>*temp var6 0<CR>*temp var7 11<CR><CR>Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way."<CR><CR>New text.<CR><CR>This challenge is just a simple movement and entering text at a certain place.<Esc>[201~jk<BS><BS><Esc> kk:wq<BS><BS>q<BS>wq<CR>

0 comments


Created by: @Flurrywinde

6727 active golfers, 30384 entries

Leaderboard (lowest score wins):
32
#5251 - communknits / @communknits

06/05/2016 at 04:37PM

32
#5252 - Matt Sartwell / @mesartwell

06/05/2016 at 08:27PM

32
#5253 - z3lvs / @z3lvs

06/07/2016 at 01:44PM

32
#5254 - Jake Carter / @JakeCarter

06/09/2016 at 04:40AM

32
#5255 - Marcus Buffett / @MarcusBuffett

06/14/2016 at 05:47PM

32
#5256 - Asxnd Zxhdn / @asxnd

06/15/2016 at 04:15AM

32
#5257 - Rein Van Imschoot / @reinvanimschoot

06/15/2016 at 08:08PM

32
#5258 - John Schwarz / @john_jschwarz

06/28/2016 at 06:22PM

32
#5259 - どら / @drivehi46

07/15/2016 at 01:09AM

32
#5260 - Jack McCallum / @JaqMcCallum

08/03/2016 at 08:43PM

32
#5261 - Sergiu / @harababurel

08/10/2016 at 05:08PM

32
#5262 - Amadare / @amadare42

08/17/2016 at 12:40PM

32
#5263 - Raphi / @rabu_

08/24/2016 at 07:15PM

32
#5264 - srk / @samrolken

08/27/2016 at 02:24AM

32
#5265 - FUX [finest.hiphop] / @fuxfinest

09/01/2016 at 07:49AM

32
#5266 - TETSU / @kaoru6strings

09/02/2016 at 06:57AM

32
#5267 - Patrick J McDonough / @snake_VsCamel

09/05/2016 at 02:50AM

32
#5268 - Joe Heth / @jheth

10/04/2016 at 11:52PM

32
#5269 - Mikobson / @mikobson

10/09/2016 at 08:27PM

32
#5270 - Linjackson / @Linjackson78

10/10/2016 at 07:53AM

32
#5271 - erichaase / @erichaase

10/15/2016 at 01:40AM

32
#5272 - Ruslan Ismagilov / @is_ruslan

10/15/2016 at 01:15PM

32
#5273 - John Barbero Unenge / @JBarberU

10/19/2016 at 09:31AM

32
#5274 - Migrashin / @Migrashin

10/21/2016 at 09:28PM

32
#5275 - Mo / @MOtsuka2

10/26/2016 at 12:52PM

32
#5276 - Rodney Visser / @_Radnus

11/21/2016 at 09:52PM

32
#5277 - Raphel Yao / @aristotll

11/24/2016 at 02:58AM

32
#5278 - therightman / @therightmandev

12/26/2016 at 10:19AM

32
#5279 - 君の名は / @nohopefory0u

12/28/2016 at 05:21PM

32
#5280 - Jakob Schnell / @Koebischnell

12/28/2016 at 07:15PM