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

6798 active golfers, 30751 entries

Leaderboard (lowest score wins):
23
#2551 - abdellah hariti / @_hariti

04/25/2020 at 02:04PM

23
#2552 - yyang / @yyang25803679

05/03/2020 at 07:49AM

23
#2553 - Antoine Colson / @antoinefcolson

05/06/2020 at 04:39AM

23
#2554 - Bspammer / @Bspammer

05/07/2020 at 12:10AM

23
#2555 - Greg Jebb / @jebbster

05/10/2020 at 09:44PM

23
#2556 - Bhagwan / @El_Bhagwan

05/11/2020 at 01:27AM

23
#2557 - tynanguerra / @tynanguerra

05/11/2020 at 07:54PM

23
#2558 - Pan / @bekindtopeople2

05/11/2020 at 10:09PM

23
#2559 - River Jiang / @riverjiang

05/12/2020 at 07:53AM

23
#2560 - Sven Kõiv / @KoivSven

05/16/2020 at 09:49AM

23
#2561 - Fluidjax / @fluidjax

05/29/2020 at 08:46PM

23
#2562 - natasha / @CallMeNatchos

05/31/2020 at 11:23PM

23
#2563 - Patrick Weigert / @PatrickWeigert

05/31/2020 at 11:49PM

23
#2564 - Bob Streams / @BobStreams1

06/01/2020 at 07:12PM

23
#2565 - betmaster / @betmstr

06/01/2020 at 09:30PM

23
#2566 - Ben Simmons / @Simmons_Ben

06/03/2020 at 03:50PM

23
#2567 - Romain / @djizeuscoco

06/06/2020 at 05:48PM

23
#2568 - Kamil Laskowski / @kamlaskow

06/07/2020 at 10:10AM

23
#2569 - Vinícius Hoyer / @viniciushoyer

06/12/2020 at 01:03PM

23
#2570 - James Skinner / @skinbad88

06/12/2020 at 07:06PM

23
#2571 - JLObject / @powful_panda

07/01/2020 at 01:39AM

23
#2572 - HiJova / @Jova28190268

07/03/2020 at 01:16PM

23
#2573 - rl5day / @rl5day

07/07/2020 at 04:21AM

23
#2574 - Виталий Макаров / @avada_keda_bra

07/12/2020 at 01:51PM

23
#2575 - cwaldbieser / @cwaldbieser

07/14/2020 at 01:23PM

23
#2576 - Saurabh / @Saurabh09299

07/20/2020 at 10:52AM

23
#2577 - kok / @kok89428331

07/24/2020 at 02:04PM

23
#2578 - Mislav Vuletić / @MasterGeeMedo

07/24/2020 at 05:59PM

23
#2579 - Kurtis D. Miller / @phdkurt

07/26/2020 at 01:20AM

23
#2580 - David Martínez / @g0ddrinksjava

08/08/2020 at 05:57PM