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

6901 active golfers, 31234 entries

Leaderboard (lowest score wins):
22
#1921 - Ashwin Menon / @IngridMorstrad

10/03/2019 at 10:11PM

22
#1922 - Johannes Ruder / @JruderRuder

10/04/2019 at 06:05AM

22
#1923 - Iulian Alexandru / @ialexandru04

10/05/2019 at 07:23AM

22
#1924 - Tamás Kárándi / @tkarandi

10/06/2019 at 01:02AM

22
#1925 - Lukas Turcani / @LTurcani

10/07/2019 at 07:59AM

22
#1926 - dahan / @dahan74265266

10/08/2019 at 02:53AM

22
#1927 - Stephen Westhead / @CraziCrow

10/08/2019 at 09:56AM

22
#1928 - Jeremy Griffin / @jerrymcgriffo

10/10/2019 at 05:11AM

22
#1929 - Emil Braserud / @Erdustiggen

10/10/2019 at 05:45PM

22
#1930 - rapan931 / @rapan931

10/11/2019 at 12:40AM

22
#1931 - Marek674512 / @marek674512

10/11/2019 at 10:16AM

22
#1932 - Erik Engstrom / @eengstrom

10/11/2019 at 10:58PM

22
#1933 - Phu Ngo 🌐 / @PhuNgo_K

10/12/2019 at 06:50AM

22
#1934 - Vladimir Leskov / @vladimirlesk

10/12/2019 at 11:39AM

22
#1935 - kkscr / @kkscr1

10/12/2019 at 07:06PM

22
#1936 - Lycal / @Lycal3

10/13/2019 at 09:59AM

22
#1937 - KlondikeBaer / @BaerKlondike

10/13/2019 at 04:02PM

22
#1938 - CF / @CF42231856

10/14/2019 at 07:05PM

22
#1939 - warwickrulez / @warwickrulez

10/15/2019 at 11:39AM

22
#1940 - aᵣᵤhᵢ / @aruhi_

10/15/2019 at 11:49PM

22
#1941 - artgur / @artgur

10/18/2019 at 01:10AM

22
#1942 - Scott Rosenquist / @scottrosenquist

10/18/2019 at 02:20AM

22
#1943 - Dylan Bulfin / @dbulf3

10/18/2019 at 11:55PM

22
#1944 - Ivan Volosyuk / @IvanVolosyuk

10/19/2019 at 05:13AM

22
#1945 - 李华楠 / @LeeOhanan

10/19/2019 at 01:30PM

22
#1946 - Jörg Meyer / @JoergMy

10/19/2019 at 08:04PM

22
#1947 - Roberto Carta / @MailCarta

10/19/2019 at 11:57PM

22
#1948 - GolfingWithVim1 / @Vim1With

10/20/2019 at 03:23AM

22
#1949 - harmony_krieg / @harmony_krieg

10/20/2019 at 08:53AM

22
#1950 - Renan Cidale / @rnescalz

10/20/2019 at 12:05PM