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

7060 active golfers, 32018 entries

Leaderboard (lowest score wins):
22
#2071 - Jonathan.N.Carrot / @JonathanNCarrot

02/27/2020 at 08:36AM

22
#2072 - Scott Lee / @ureure

02/28/2020 at 02:59AM

22
#2073 - ser / @ser_robo

02/28/2020 at 03:41PM

22
#2074 - Omar Sulehria / @osulehria

02/29/2020 at 05:44PM

22
#2075 - countime / @countime1

03/04/2020 at 04:30AM

22
#2076 - Paul Parker / @PaulDesmoParker

03/04/2020 at 10:05PM

22
#2077 - エターナル雑魚 / @eternalzako

03/07/2020 at 10:30AM

22
#2078 - Alon Sandler / @AlonSandler

03/11/2020 at 01:05PM

22
#2079 - NoniusSenior / @NoniusS

03/11/2020 at 02:45PM

22
#2080 - Sean Dewar / @seandewar

03/12/2020 at 05:23PM

22
#2081 - Brian Lause / @TallBrianL

03/13/2020 at 04:20AM

22
#2082 - Jan / @Howi48

03/13/2020 at 10:23AM

22
#2083 - Toby Hawkins / @Toby_Hawkins

03/14/2020 at 03:21PM

22
#2084 - Daniel López / @Dani17H

03/14/2020 at 06:02PM

22
#2085 - yar / @yar01921320

03/15/2020 at 12:24AM

22
#2086 - Octrace / @octrace

03/15/2020 at 04:10AM

22
#2087 - Niklas Ydebäck / @Ydebaeck

03/15/2020 at 01:09PM

22
#2088 - 杜撰 / @NOrUixDzwW4BbCP

03/15/2020 at 07:29PM

22
#2089 - ScalablePrototyping / @ScalableP

03/19/2020 at 09:57PM

22
#2090 - NGageMegaman / @NGageMegaman

03/20/2020 at 12:55AM

22
#2091 - Caique Santana / @_caique39

03/20/2020 at 04:10AM

22
#2092 - ちゅうい / @_chuyii

03/20/2020 at 12:41PM

22
#2093 - Kelvin Chaves / @_kelvincs

03/21/2020 at 06:06PM

22
#2094 - Yan Xue / @_yxue

03/21/2020 at 09:44PM

22
#2095 - Rodrigo V. Lopes / @rodvlopes

03/22/2020 at 03:03AM

22
#2096 - zaid emad / @zaid_emad97

03/25/2020 at 08:35AM

22
#2097 - Alexander / @Alexand64026860

03/25/2020 at 01:07PM

22
#2098 - koyumeishi / @koyumeishi_

03/27/2020 at 05:00PM

22
#2099 - Mats Faugli / @matsfaugli

03/29/2020 at 09:24PM

22
#2100 - Brett Castellanos / @bcas1984

04/02/2020 at 03:48PM