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

7425 active golfers, 33647 entries

Leaderboard (lowest score wins):
22
#871 - Elgaoussi Hamza / @Elgaoussi

04/22/2017 at 08:34PM

22
#872 - Pat Haggerty / @haggertypat

04/23/2017 at 11:56AM

22
#873 - Apostolis Hardalias / @a_hardalias

04/23/2017 at 03:07PM

22
#874 - Jay Shenk / @jay_shenk

04/24/2017 at 08:28PM

22
#875 - Andrey / @andreyrmg

04/25/2017 at 11:07AM

22
#876 - Ionel Manolache / @namnoi38

04/25/2017 at 02:01PM

22
#877 - Eric Bock / @ericbock

04/25/2017 at 07:40PM

22
#878 - Chris Fleming / @chrisfl

04/26/2017 at 02:59PM

22
#879 - vimgolf / @vimgolf42

04/26/2017 at 09:23PM

22
#880 - Technocoder / @Technocoder_

04/27/2017 at 12:04AM

22
#881 - Anton Matveev / @aush_tx

04/27/2017 at 07:27AM

22
#882 - Stefan Uhl / @der_wuschl

04/27/2017 at 02:09PM

22
#883 - Jim Hill / @_jthill

04/27/2017 at 03:25PM

22
#884 - Acid One / @AcidOne2

04/28/2017 at 08:11AM

22
#885 - Dane Summers / @dsummersl

04/28/2017 at 01:05PM

22
#886 - Doug Chan / @Coufu

04/28/2017 at 03:51PM

22
#887 - Will / @VVi11_I_AM

04/30/2017 at 04:52AM

22
#888 - Chris Robertson / @chrisxrobertson

04/30/2017 at 08:34AM

22
#889 - TD Material / @abz32ghk

04/30/2017 at 03:28PM

22
#890 - Allen | Wheels / @SRWheel5

05/02/2017 at 08:51PM

22
#891 - jayem / @not_even_lyin

05/03/2017 at 11:06PM

22
#892 - Mark Faga / @markjfaga

05/04/2017 at 03:10AM

22
#893 - Slobodan Ilic / @a_slobodan

05/04/2017 at 06:44AM

22
#894 - Shriharsh / @ShriharshMishra

05/04/2017 at 03:33PM

22
#895 - jcbglbmn / @JacobGelbman

05/04/2017 at 08:44PM

22
#896 - Arnie Palmies / @ArnieViPalmies

05/05/2017 at 04:51AM

22
#897 - Brad Brown / @zoocat

05/07/2017 at 02:38PM

22
#898 - markschwarz / @markschwarz

05/07/2017 at 09:16PM

22
#899 - Anil / @anilkrishna_m

05/09/2017 at 03:58PM

22
#900 - Matthew Mongeau / @halogenandtoast

05/11/2017 at 09:00AM