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

7071 active golfers, 32052 entries

Leaderboard (lowest score wins):
46
#6931 - LukasK / @LukasK21233410

01/01/2020 at 11:34PM

46
#6932 - Connor / @robotboy_69

01/31/2020 at 02:56AM

46
#6933 - Ivan Levcovitz / @ivanlevcovitz

03/13/2020 at 11:50PM

46
#6934 - Dr. Bharat Bhushan Verma / @dearbharat1

06/01/2020 at 02:18PM

46
#6935 - 柳木潇湘 / @vQ8GMOdomggIuM4

06/27/2020 at 01:44PM

46
#6936 - 1 / @Shafouz

08/30/2020 at 10:17PM

46
#6937 - dzungtran / @dzungtran89

09/19/2020 at 02:06AM

47
#6938 - Lucas McDaniel / @Ldmcdaniel109

01/21/2016 at 07:38AM

47
#6939 - vimmgolf / @marcusbfs

06/26/2016 at 07:37PM

47
#6940 - Chris Chou / @chhschou

07/07/2017 at 04:48AM

47
#6941 - みんな違ってみんな悪い / @sai_kyouto

07/30/2017 at 02:48PM

47
#6942 - Abhiram Mullapudi / @mullapudi_7

11/26/2017 at 12:45AM

47
#6943 - LeeSue / @liarchtt

04/06/2018 at 07:21AM

47
#6944 - Sophie Stadler / @sophstad

11/01/2018 at 09:41PM

47
#6945 - Ang Wei Neng / @weineng96

11/24/2018 at 03:52PM

47
#6946 - Jordi Grau-Moya / @jordigraumo

12/09/2018 at 11:40AM

47
#6947 - Shawn Southwell / @shawn_southwell

01/21/2019 at 07:16AM

47
#6948 - Sagi Kedmi / @sagikedmi

05/24/2019 at 03:53PM

47
#6949 - Anil Nair / @anil100nair

07/25/2019 at 07:42AM

47
#6950 - /* Prateek Borde */ / @iprateekk

01/18/2020 at 01:41PM

47
#6951 - Jason Zhao / @Jason7Zhao

06/28/2020 at 04:22AM

48
#6952 - Epety / @sudoask

08/09/2015 at 03:15AM

48
#6953 - Wes Whitney / @wes_whitney

09/03/2015 at 02:38AM

48
#6954 - Takashi Sumiyoshi / @tks_smys

12/31/2015 at 01:19AM

48
#6955 - Sbax / @heySbax

04/12/2016 at 10:20AM

48
#6956 - nieza / @lucaspta1

06/05/2016 at 03:16AM

48
#6957 - Patrick / @pjaleeuwen

07/22/2016 at 10:30PM

48
#6958 - Micha / @michman89

08/06/2016 at 03:19PM

48
#6959 - Byaruhanga Franklin / @byaruhaf

09/18/2016 at 12:20AM

48
#6960 - simonreborn / @sixthevicious

10/18/2016 at 09:27AM