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

5377 active golfers, 23987 entries

Leaderboard (lowest score wins):
57
#5341 - musiquoman / @musiquoman007

11/12/2018 at 11:22AM

57
#5342 - Vermeire Marie-France / @FranceVermeire

11/14/2018 at 10:26AM

58
#5343 - Konrad Heidler / @MisterKono

12/26/2015 at 02:18PM

58
#5344 - Unityお姉さん♡ / @unichan___

06/10/2016 at 04:42AM

59
#5345 - Mick Niepoth / @mickniepoth

10/27/2017 at 02:00PM

60
#5346 - vsevolod / @vsevolodorlov

01/27/2016 at 07:46AM

60
#5347 - marcel novotny / @Marcelmarnov

03/19/2018 at 06:06PM

60
#5348 - David / @David86652657

03/22/2018 at 09:23PM

61
#5349 - Radoslav Ivanov / @rivanov1

09/15/2015 at 12:03AM

61
#5350 - Mark Miranda / @notmarkmiranda

02/07/2017 at 10:37PM

63
#5351 - Krystle / @krystle_test

05/17/2017 at 06:36AM

63
#5352 - junkemail9733 / @junkemail9733

06/08/2018 at 11:03PM

63
#5353 - Huynh Thao / @DuS2Thao

07/22/2018 at 02:54PM

64
#5354 - shellfire32 / @shellfire32

11/25/2016 at 01:52PM

64
#5355 - Giorgi Gagoshidze / @Nacarqeq1a

12/26/2017 at 02:06PM

64
#5356 - Frank Chou / @FrankChou7

02/27/2018 at 06:20PM

65
#5357 - Bamdad Dashtban / @bamdad

04/22/2017 at 08:34PM

65
#5358 - White_Rabbit / @blindcop

05/15/2017 at 01:49PM

66
#5359 - Christofer Ärleryd / @carleryd

09/26/2015 at 03:19PM

66
#5360 - vantieghem sylvain / @vantieghemsylv1

11/14/2018 at 12:59PM

67
#5361 - Herk / @herkiejerky

01/30/2016 at 11:27PM

69
#5362 - Jack Keller / @jacknumbernine

12/22/2015 at 02:35AM

69
#5363 - Jack O'Brien / @The_BC_Studio

09/18/2018 at 06:52PM

70
#5364 - Ricardo Morais / @moraispgsi

03/19/2017 at 06:53PM

73
#5365 - Josh Linton / @JoshHLinton

10/11/2017 at 03:19AM

73
#5366 - akinori yamashita / @t1693519

08/03/2018 at 07:35AM

75
#5367 - David Jenkinson / @eighty8t8

04/26/2018 at 06:26AM

76
#5368 - 저녁반흑븍귀 / @ifwinner

05/05/2018 at 12:42PM

77
#5369 - Kroos / @lover_6102

09/11/2018 at 05:18PM

78
#5370 - Lucas Machado / @lucasmachadorj

11/10/2015 at 12:54AM