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 4778 remaining solutions by signing in and submitting your own entry
#4779 KEBE Abdou Bigue / @KebeBigue - Score: 359 - 11/14/18 @ 11:15
jjjjjj<Esc>itemp var7<BS><BS><BS><BS><BS><BS><BS><BS><BS>*T<BS>temp var7 11j<BS><Esc>jj<Esc>iNex<BS>w text.k<BS><Esc>kkmllllll<CR><CR>kkllllllllllllluuU<Up><Up><Up><Down><Esc>I<Esc>I*T<BS>temp var7 11<Esc>jj<Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc>iNex<BS>w text.<Esc>kkllll<Esc>io<BS><Esc>llo<Esc>jjkjkllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllloj<BS><Esc>jllllllllloh<BS><Esc>h:Q<BS>wq<CR>

0 comments


Created by: @Flurrywinde

4779 active golfers, 21186 entries

Leaderboard (lowest score wins):
5
#1 - A B / @AB85663500

11/16/2018 at 08:18PM

5
#2 - Commi / @hellocommi

11/23/2018 at 06:59PM

7
#3 - James LaChance / @FatBoyXPC

10/11/2018 at 06:50AM

11
#4 - Maxim Kim / @mxmkm

10/25/2018 at 09:11AM

13
#5 - bignos / @bignos2

09/21/2018 at 04:31PM

14
#6 - Fichera Gaetano / @gaetanofic

04/05/2018 at 09:02AM

14
#7 - Daniel Beck / @daniel_beck_il

04/20/2018 at 04:39PM

14
#8 - fucus / @fishlovebanana

07/27/2018 at 01:32PM

14
#9 - nemonomine / @nemonomine

08/23/2018 at 04:02PM

14
#10 - がく / @Gaku07jp

08/31/2018 at 09:07AM

14
#11 - Ali Mostafavi / @Ali_Mostafavi_

09/04/2018 at 04:15PM

14
#12 - Sean / @SeanZhou1023

09/14/2018 at 09:24PM

14
#13 - Stefan Stutz / @0VIIXI

10/10/2018 at 08:42PM

15
#14 - Douglas Perrin / @Deznormal

03/02/2018 at 04:11PM

15
#15 - Alexander Zheleznov / @ephemerr

08/16/2018 at 08:11AM

15
#16 - Mark Oswald / @mrkosw

08/21/2018 at 01:25PM

15
#17 - James Deville / @jredville

10/10/2018 at 09:07PM

15
#18 - dyson dark / @U9gJt7mOEOjbRN7

11/17/2018 at 05:15PM

16
#19 - Felipe Oliveira / @felipecvo

07/10/2018 at 04:38PM

17
#20 - Gary Wild / @amande_pistache

11/19/2018 at 05:52PM

18
#21 - Paul Bunch / @gigatesla

01/26/2018 at 07:09PM

21
#22 - Yogesh Lonkar / @yogeshlor

10/03/2018 at 08:17AM

22
#23 - Tim Chase / @gumnos

07/24/2015 at 01:13AM

22
#24 - Urtica dioica / @udioica

07/24/2015 at 01:13AM

22
#25 - Carlos López / @morrizon

07/24/2015 at 01:32AM

22
#26 - Louis Caruana / @louiecaruana

07/24/2015 at 02:42AM

22
#27 - David Willming / @wdialvmeo

07/24/2015 at 04:05AM

22
#28 - SIGHODL / @AssafLavie

07/24/2015 at 04:32AM

22
#29 - Jeanno / @JeannoHS

07/24/2015 at 06:59AM

22
#30 - Mutter Mumble / @muttermumble

07/24/2015 at 08:25AM