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 7428 remaining solutions by signing in and submitting your own entry
#7429 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

7429 active golfers, 33664 entries

Leaderboard (lowest score wins):
22
#1 - Tim Chase / @gumnos

07/24/2015 at 01:13AM

22
#2 - Urtica dioica / @udioica

07/24/2015 at 01:13AM

22
#3 - Carlos López / @morrizon

07/24/2015 at 01:32AM

22
#4 - Louis Caruana / @louiecaruana

07/24/2015 at 02:42AM

22
#5 - David Willming / @wdialvmeo

07/24/2015 at 04:05AM

22
#6 - we’re going to need a bigger bot / @assaflavie

07/24/2015 at 04:32AM

22
#7 - Jeanno / @JeannoHS

07/24/2015 at 06:59AM

22
#8 - Mutter Mumble / @muttermumble

07/24/2015 at 08:25AM

22
#9 - kungfuchad / @kungfuchad

07/24/2015 at 11:14AM

22
#10 - Serenium / @serenium

07/24/2015 at 11:58AM

22
#11 - Louis Burke / @LambdaABeta

07/24/2015 at 12:21PM

22
#12 - John Braxler / @braxler

07/24/2015 at 02:27PM

22
#13 - Matt / @mcr05

07/24/2015 at 07:27PM

22
#14 - Quark / @PuzzleQuark

07/25/2015 at 03:52PM

22
#15 - Andreas Schlegel / @andischl

07/25/2015 at 05:38PM

22
#16 - Reef / @Sir_Reef

07/25/2015 at 09:55PM

22
#17 - Petro Тrouq / @zulolosi

07/26/2015 at 06:13AM

22
#18 - David da Silva / @dasilvacontin

07/26/2015 at 03:55PM

22
#19 - Wojtek Ryrych / @wryrych

07/26/2015 at 07:01PM

22
#20 - Abdo Achkar / @Achkar

07/26/2015 at 09:35PM

22
#21 - Partial SHA1 hash / @25fcag9e

07/27/2015 at 02:23PM

22
#22 - Hunter Gatewood / @hcgatewood

07/28/2015 at 01:27AM

22
#23 - Robbie Clarken / @robbieclarken

07/28/2015 at 10:55AM

22
#24 - Mehanig Mehanig / @MehaniG

07/28/2015 at 08:51PM

22
#25 - Jer Wilson / @superjercom

07/28/2015 at 09:30PM

22
#26 - Bakhti Aripov / @bakhti

07/29/2015 at 06:43AM

22
#27 - Victor Haffreingue / @nobe_4

07/29/2015 at 12:52PM

22
#28 - Marcelo Montu / @_mMontu_

07/29/2015 at 01:42PM

22
#29 - Shubham Sharma / @shubh1337

07/29/2015 at 04:12PM

22
#30 - Rasmus P / @rasmup

07/29/2015 at 05:34PM