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

7401 active golfers, 33552 entries

Leaderboard (lowest score wins):
22
#811 - fakta om sniglar / @fakta_sniglar

03/09/2017 at 04:10PM

22
#812 - Dimitar Ivanov / @dimisthoughts

03/10/2017 at 04:39AM

22
#813 - Alexander Bessonov / @nonsleepr

03/11/2017 at 05:22AM

22
#814 - xwle / @xwle

03/11/2017 at 11:36AM

22
#815 - Alan Rafael / @alanrrb

03/11/2017 at 07:46PM

22
#816 - akanb / @GAkt6L6SlKhy8zA

03/13/2017 at 11:35AM

22
#817 - Thomas Dy / @pleasantprog

03/14/2017 at 08:31AM

22
#818 - Eozu / @eozuco

03/16/2017 at 02:33AM

22
#819 - Daniel / @Daniel00288663

03/16/2017 at 03:10PM

22
#820 - nils andersson / @andersson1_nils

03/16/2017 at 03:34PM

22
#821 - Guilherme Reis / @guitoper

03/16/2017 at 10:25PM

22
#822 - Pierre Maoui / @poupougnac

03/17/2017 at 10:34AM

22
#823 - Carcarlo Pravettoni / @trisino

03/18/2017 at 01:49AM

22
#824 - Il Granfiatore / @M_Klauer

03/18/2017 at 10:26PM

22
#825 - Andreas Anderbach / @AAnderbach

03/19/2017 at 11:34AM

22
#826 - Ilya Shakirov / @aelaau

03/20/2017 at 02:00PM

22
#827 - Alex Subtle / @AlexSubtle

03/21/2017 at 06:09PM

22
#828 - Andreas Hagesjö / @Ankhagge

03/21/2017 at 10:40PM

22
#829 - Cameron Jones / @Deimyts

03/22/2017 at 08:50PM

22
#830 - Your Mind / @dnim_ruoy

03/22/2017 at 09:56PM

22
#831 - GVest Two / @GvestTwo

03/24/2017 at 03:00AM

22
#832 - Tyler Holien / @tylerholien

03/24/2017 at 04:57PM

22
#833 - Nachiket Bhave / @nachiketvb

03/27/2017 at 10:44AM

22
#834 - D W / @dweij1

03/29/2017 at 02:51PM

22
#835 - Reuben Narkwo / @reubwo

03/29/2017 at 07:53PM

22
#836 - JTR / @meDOT__name__

03/30/2017 at 01:14AM

22
#837 - Maximilian Albert / @cilix42

03/30/2017 at 01:20AM

22
#838 - Kidon Chu / @kidonchu

04/06/2017 at 04:09AM

22
#839 - えるざっぷ / @_elzup_

04/06/2017 at 09:25AM

22
#840 - Theo Vasileiadis / @theo_vasi

04/06/2017 at 09:42AM