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

5565 active golfers, 24834 entries

Leaderboard (lowest score wins):
22
#151 - Pavlo Klets / @p01nt

10/09/2015 at 02:30PM

22
#152 - Artur Taranchiev / @ewokru

10/09/2015 at 09:26PM

22
#153 - 朱国栋 / @GuodongZhu

10/13/2015 at 04:30AM

22
#154 - Duc Nghiem Xuan / @xuanduc987

10/13/2015 at 06:48AM

22
#155 - Chuck Newport / @swap_chuck

10/13/2015 at 06:50PM

22
#156 - Mina Naguib / @minaguib

10/14/2015 at 02:07AM

22
#157 - jl / @jl4096

10/14/2015 at 03:55AM

22
#158 - Daniel Pham / @dany_pham

10/14/2015 at 04:11AM

22
#159 - Ronald Bell / @rdbell

10/14/2015 at 06:36AM

22
#160 - よぎり / @yogiri_A

10/14/2015 at 10:11AM

22
#161 - Kohei Oguchi / @ogch_v

10/14/2015 at 01:55PM

22
#162 - Artem Medeusheyev / @ArtemMedeu

10/16/2015 at 08:18AM

22
#163 - Hiroshi Takamatsu / @hitac

10/17/2015 at 04:29AM

22
#164 - jon / @sineterminis

10/17/2015 at 06:48PM

22
#165 - Bowen Deng / @DavidBdeng

10/18/2015 at 08:39AM

22
#166 - Huan Zhang / @Zhhuan

10/18/2015 at 08:53AM

22
#167 - André Fernandes / @asfer6

10/18/2015 at 11:44PM

22
#168 - Francisc Munteanu / @franciscmuntean

10/19/2015 at 08:08PM

22
#169 - Roger / @enjoyheyo

10/19/2015 at 10:55PM

22
#170 - Simon Dudley / @psy__phi

10/20/2015 at 06:03PM

22
#171 - Peter / @sunirbmag

10/20/2015 at 07:46PM

22
#172 - Harm te Hennepe / @HrmtH

10/21/2015 at 08:37AM

22
#173 - Carsten Dreesbach / @HerbCSO

10/21/2015 at 12:48PM

22
#174 - Yusent Chig / @yusent12

10/22/2015 at 05:00PM

22
#175 - John Xia / @xiaman

10/22/2015 at 05:36PM

22
#176 - Damien J / @TL343

10/24/2015 at 01:47AM

22
#177 - Gleb Kh / @GlebKh

10/24/2015 at 05:02AM

22
#178 - Campbell Davis / @Campbell_Dav

10/24/2015 at 11:24AM

22
#179 - Nick Miller / @ItsMeNickMiller

10/24/2015 at 07:30PM

22
#180 - Matthew Desjardins / @Desjardins_M

10/25/2015 at 03:16AM