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

7179 active golfers, 32540 entries

Leaderboard (lowest score wins):
34
#6241 - Terry Vogelsang / @terryvogelsang

08/03/2020 at 02:14PM

34
#6242 - Sergio / @SergioVl12

08/07/2020 at 06:59PM

34
#6243 - Vincent Pham / @VNCPM

08/11/2020 at 09:28PM

34
#6244 - Moh / @Moh_Osman3

08/17/2020 at 07:58AM

34
#6245 - Theo Sarrazin / @tshaero

08/17/2020 at 05:58PM

34
#6246 - Bajok / @b410k

08/29/2020 at 04:16PM

34
#6247 - Christ / @Christ46234422

09/05/2020 at 09:23PM

34
#6248 - MoreWillMusic / @morewillmusic

09/29/2020 at 03:43PM

34
#6249 - Jacob Schonberg / @JacobSchonberg1

09/29/2020 at 03:56PM

34
#6250 - e3b0c44298fc1c149afb / @e3b0c44298fc1c1

09/29/2020 at 07:17PM

34
#6251 - L.P. / @Hitchhiker1990

10/02/2020 at 12:53AM

34
#6252 - achistdochegal / @talisos

10/15/2020 at 10:08AM

34
#6253 - Anier Velasco Sotomayor / @VelascoAnier

10/23/2020 at 02:00PM

34
#6254 - Gabe / @Gabe74053768

12/10/2020 at 03:05PM

34
#6255 - Alex B / @AlexB62835326

12/15/2020 at 10:22PM

34
#6256 - dvorak4tzx / @dvorak4tzx4

12/28/2020 at 04:54PM

34
#6257 - sh-wayz / @WayzSh

12/30/2020 at 03:22AM

34
#6258 - 방일우 / @CD5PpB36ZR5kWtk

01/05/2021 at 05:30AM

34
#6259 - Simon Lang / @veryuniqueaccou

01/06/2021 at 05:15AM

34
#6260 - Marcin Dostojewski / @MarcinekAGH

01/10/2021 at 01:46PM

35
#6261 - Alexander Buntakov / @Buntakov

07/29/2015 at 08:03PM

35
#6262 - Omid Hezaveh / @omidfi

08/07/2015 at 07:39PM

35
#6263 - Simen Skoglund / @SimenSkog

08/13/2015 at 07:35PM

35
#6264 - Itamar Gal / @novicevimgolfer

08/17/2015 at 08:33PM

35
#6265 - Ivan Zhuravlev / @DreddyI

08/26/2015 at 12:08PM

35
#6266 - Brad / @b2test

09/01/2015 at 12:04PM

35
#6267 - Vinayak Kaushik / @theubermanshere

09/12/2015 at 02:20PM

35
#6268 - Alexandre Jouandin / @Allezxandre

09/22/2015 at 11:11AM

35
#6269 - Felix Maxwell / @felix_maxwell

09/26/2015 at 09:28PM

35
#6270 - ddevil / @ddevil

10/02/2015 at 02:59PM