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

7425 active golfers, 33647 entries

Leaderboard (lowest score wins):
22
#1261 - Meda Marisela / @LongbowMeda

03/09/2018 at 02:29AM

22
#1262 - Steven Petsche / @StevenPetsche

03/11/2018 at 07:18AM

22
#1263 - Chris Sutton / @cs1379320

03/11/2018 at 10:13PM

22
#1264 - Lisa Ugray / @lisa_ugray

03/12/2018 at 10:31PM

22
#1265 - acheronfail / @acheronfail

03/13/2018 at 09:10AM

22
#1266 - Thiago Araújo Silva / @thiagoaraujos

03/13/2018 at 05:04PM

22
#1267 - pyaillet 🤘 / @pyaillet

03/14/2018 at 08:35PM

22
#1268 - Jonas Vautherin / @JonasVautherin

03/15/2018 at 01:57PM

22
#1269 - Channing Chen / @jslgycm

03/16/2018 at 09:52AM

22
#1270 - 煎饼果子 / @melongirl_SH

03/16/2018 at 02:10PM

22
#1271 - Warley Vital / @vitalwarley_

03/18/2018 at 02:48PM

22
#1272 - DBattou / @DBattou

03/19/2018 at 11:57AM

22
#1273 - wil / @wilstenholme

03/19/2018 at 04:05PM

22
#1274 - Put me on your list tyrants / @electronjunkie

03/19/2018 at 06:34PM

22
#1275 - Oleg Skillup / @skill_up

03/19/2018 at 08:16PM

22
#1276 - Paul Page / @theRealPaulPage

03/19/2018 at 08:30PM

22
#1277 - textonly / @textonly2018

03/22/2018 at 02:13AM

22
#1278 - Peter Golfer / @GolferLapetr

03/22/2018 at 01:36PM

22
#1279 - Matt Aschmann / @ma7hatter

03/23/2018 at 04:37AM

22
#1280 - Alec Goebel / @bewarethegrue

03/23/2018 at 08:12PM

22
#1281 - Skyler Soss / @Skyb0rg

03/26/2018 at 10:06PM

22
#1282 - gerry / @ggaonag

03/28/2018 at 03:23AM

22
#1283 - Tim / @munnadugga

03/29/2018 at 05:39PM

22
#1284 - Михаил Фуфин / @MishaFufin

03/30/2018 at 07:16PM

22
#1285 - Ted Carlsson / @TedCarlsson

03/31/2018 at 01:15PM

22
#1286 - ewalk153 / @ewalk153

03/31/2018 at 04:57PM

22
#1287 - platypusDancing / @platypusDancing

04/01/2018 at 04:10AM

22
#1288 - towc / @MateiCopot

04/02/2018 at 08:11AM

22
#1289 - chriskuck / @chriskuck

04/03/2018 at 05:28PM

22
#1290 - ken / @mindnaked

04/04/2018 at 06:29AM