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

6912 active golfers, 31292 entries

Leaderboard (lowest score wins):
23
#2611 - santrupta mishra / @talkedgrain8

08/13/2020 at 07:48PM

23
#2612 - mindgitrwx / @mindgitrwx

08/15/2020 at 06:06AM

23
#2613 - RaylanFox / @RaylanFox

08/21/2020 at 07:25AM

23
#2614 - elroylee / @elroylee11

08/22/2020 at 02:16PM

23
#2615 - Marcio M Pereira / @iviarcio

08/23/2020 at 01:42AM

23
#2616 - Thomas Faivre / @faivre_thomas

08/23/2020 at 08:31PM

23
#2617 - fenn.stefan@gmail.com / @FennStefan

08/25/2020 at 12:21PM

23
#2618 - ne0-1 / @ne0_01

08/28/2020 at 11:21AM

23
#2619 - Cristian Cazacu / @kryshac

08/30/2020 at 08:45PM

23
#2620 - Yannick / @Yannick88147038

09/05/2020 at 07:24PM

23
#2621 - kofls / @kofls4

09/06/2020 at 11:22AM

23
#2622 - mevmev / @mevmev8

09/13/2020 at 01:56PM

23
#2623 - Andrew McKinlay / @ihavethecon

09/17/2020 at 12:31AM

23
#2624 - chaotic / @laersn

09/17/2020 at 01:03PM

24
#2625 - Jack Satriano / @JackySat_

07/24/2015 at 03:14AM

24
#2626 - Endre Galaczi / @galacziendre

07/27/2015 at 01:56PM

24
#2627 - vimgolf / @myspare307

07/28/2015 at 11:51PM

24
#2628 - Tact Overflow / @muppling

07/30/2015 at 01:22PM

24
#2629 - Adrien Fabre / @statox42

08/06/2015 at 07:04PM

24
#2630 - Gabriel Florit / @gabrielflorit

08/07/2015 at 11:23PM

24
#2631 - Johan Adriaans / @JohanAdriaans

08/13/2015 at 04:48PM

24
#2632 - Jaypal Singh / @JaypalSingh

08/17/2015 at 09:42PM

24
#2633 - alex / @alexAngle8

08/21/2015 at 07:23PM

24
#2634 - Antonia Siu / @not_antonia

09/18/2015 at 12:49PM

24
#2635 - Andrew Loucky / @merely_oolong

10/03/2015 at 04:56PM

24
#2636 - Sebastian D. / @SebastianD__

10/05/2015 at 08:27AM

24
#2637 - Charles Martin / @instinctive

10/07/2015 at 06:29AM

24
#2638 - Pomin Wu / @pm5

10/14/2015 at 08:53AM

24
#2639 - Patrick Mitchell / @jpmitche11

10/14/2015 at 02:54PM

24
#2640 - mnx / @mnxx

10/14/2015 at 05:24PM