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

6060 active golfers, 27224 entries

Leaderboard (lowest score wins):
34
#5281 - Mihai Dinu / @mihaidmn

05/14/2019 at 11:56AM

34
#5282 - underjoy is very cute / @IceDynamix

05/19/2019 at 10:47PM

34
#5283 - John Gentile / @JohnnyGOX

05/25/2019 at 02:04AM

34
#5284 - Maksym P. / @Maksym20755721

06/15/2019 at 03:42PM

34
#5285 - Thiago Preischadt / @TPreischadt

07/10/2019 at 02:09AM

34
#5286 - bpseudopod / @bpseudopod

07/18/2019 at 05:49PM

34
#5287 - Сергей / @lzbuVZY1LQvXq5F

08/15/2019 at 02:02PM

34
#5288 - Bad / @badt2011

08/17/2019 at 10:35PM

34
#5289 - Charlie Pai / @charlie_pai

08/22/2019 at 11:05PM

34
#5290 - José / @AngelGaldamez

08/25/2019 at 04:49AM

34
#5291 - Michel Onwordi / @lupo342

08/25/2019 at 06:10PM

34
#5292 - Vichaya Raksakunpani / @toonbcc

09/02/2019 at 07:34AM

34
#5293 - Jason Birchall / @jsonBirchall

09/08/2019 at 10:43AM

34
#5294 - Temp / @San5nom

09/16/2019 at 02:25PM

34
#5295 - jeremy / @jeremy67339762

09/19/2019 at 04:10PM

34
#5296 - Johnson Lu / @wanderlusteee

10/02/2019 at 01:13AM

34
#5297 - Mohit Gurumukhani / @mgurumuk

10/14/2019 at 09:50PM

34
#5298 - ~• Isaac [5] •~ / @isac_frusgoffer

10/17/2019 at 07:52PM

34
#5299 - This Is Computer Art / @wowsuchcode

10/20/2019 at 11:18AM

34
#5300 - Stefan Rabenstein / @Shaomada

11/06/2019 at 07:04AM

34
#5301 - Jiří Szkandera / @JiriSzkandera

11/13/2019 at 03:32PM

34
#5302 - Adam Jones / @AdamJon02568890

11/21/2019 at 03:36PM

34
#5303 - Maximilian Kurthen / @MaxKurthen

11/25/2019 at 09:38AM

34
#5304 - John Grove / @grovejt

12/14/2019 at 07:12PM

34
#5305 - Jan Chr / @Janhrhr

12/15/2019 at 03:18PM

35
#5306 - Alexander Buntakov / @Buntakov

07/29/2015 at 08:03PM

35
#5307 - Omid Hezaveh / @omidfi

08/07/2015 at 07:39PM

35
#5308 - Simen Skoglund / @SimenSkog

08/13/2015 at 07:35PM

35
#5309 - Itamar Gal / @novicevimgolfer

08/17/2015 at 08:33PM

35
#5310 - Ivan Zhuravlev / @DreddyI

08/26/2015 at 12:08PM