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

5381 active golfers, 24023 entries

Leaderboard (lowest score wins):
22
#181 - kokemayu / @kokemay8313

10/05/2015 at 03:01PM

22
#182 - Espen H. Kristensen / @bgosl

10/06/2015 at 04:02PM

22
#183 - Peter Shilliday / @pbshilliday

10/06/2015 at 06:06PM

22
#184 - David Lormor / @davidlormor

10/06/2015 at 10:13PM

22
#185 - Ben Crowder / @bencrowder

10/07/2015 at 01:51PM

22
#186 - Piotr Kowenzowski / @sacherus

10/07/2015 at 08:22PM

22
#187 - Sean Johnston / @esran

10/09/2015 at 10:15AM

22
#188 - Perry van Schaijk / @PvSchaijk

10/09/2015 at 11:14AM

22
#189 - Dirty Harry / @TateDirty

10/09/2015 at 01:50PM

22
#190 - Pavlo Klets / @p01nt

10/09/2015 at 02:30PM

22
#191 - Artur Taranchiev / @ewokru

10/09/2015 at 09:26PM

22
#192 - 朱国栋 / @GuodongZhu

10/13/2015 at 04:30AM

22
#193 - Duc Nghiem Xuan / @xuanduc987

10/13/2015 at 06:48AM

22
#194 - Chuck Newport / @swap_chuck

10/13/2015 at 06:50PM

22
#195 - Mina Naguib / @minaguib

10/14/2015 at 02:07AM

22
#196 - jl / @jl4096

10/14/2015 at 03:55AM

22
#197 - Daniel Pham / @dany_pham

10/14/2015 at 04:11AM

22
#198 - Ronald Bell / @rdbell

10/14/2015 at 06:36AM

22
#199 - よぎり / @yogiri_A

10/14/2015 at 10:11AM

22
#200 - Kohei Oguchi / @ogch_v

10/14/2015 at 01:55PM

22
#201 - Artem Medeusheyev / @ArtemMedeu

10/16/2015 at 08:18AM

22
#202 - Hiroshi Takamatsu / @hitac

10/17/2015 at 04:29AM

22
#203 - jon / @sineterminis

10/17/2015 at 06:48PM

22
#204 - Bowen Deng / @DavidBdeng

10/18/2015 at 08:39AM

22
#205 - Huan Zhang / @Zhhuan

10/18/2015 at 08:53AM

22
#206 - André Fernandes / @asfer6

10/18/2015 at 11:44PM

22
#207 - Francisc Munteanu / @franciscmuntean

10/19/2015 at 08:08PM

22
#208 - Roger / @enjoyheyo

10/19/2015 at 10:55PM

22
#209 - Simon Dudley / @psy__phi

10/20/2015 at 06:03PM

22
#210 - Peter / @sunirbmag

10/20/2015 at 07:46PM