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

7447 active golfers, 33742 entries

Leaderboard (lowest score wins):
37
#6901 - Nick Shatilo / @bestervuld

11/07/2019 at 08:30PM

37
#6902 - Adriaan / @abeiertz

11/08/2019 at 02:57PM

37
#6903 - Maximiliano Greco / @mmngreco

11/09/2019 at 08:43PM

37
#6904 - Aaron Harris / @TheJoyOfPython

12/01/2019 at 04:57PM

37
#6905 - Username77177 / @username77177

01/17/2020 at 08:34PM

37
#6906 - Eric Robinson / @drericrobinson

02/21/2020 at 03:51AM

37
#6907 - Alex Rossi / @rxrossi

03/19/2020 at 12:14PM

37
#6908 - Osama Abdelsatar / @Osa_ahlawy

03/20/2020 at 11:36PM

37
#6909 - Philip R. Rothschild / @Kitten_Popo

04/01/2020 at 11:51AM

37
#6910 - 5h3ll0 / @5h3ll0

04/02/2020 at 09:59AM

37
#6911 - 3vilc00kie / @3vilc00kie

04/25/2020 at 04:57AM

37
#6912 - Adam Haynes / @camomonkeyboy

05/08/2020 at 12:10AM

37
#6913 - Brian Greenhill / @bcgreenhill

05/15/2020 at 12:37PM

37
#6914 - Richard Bagshaw / @bagwaa

05/16/2020 at 06:07PM

37
#6915 - Zhuo Zhang / @i2huer

06/28/2020 at 02:01AM

37
#6916 - Just Alerik / @Just_Alerik

09/18/2020 at 03:19AM

37
#6917 - Dat / @datdhuynh

11/11/2020 at 05:08PM

37
#6918 - Lolly / @Lolly92243972

11/16/2020 at 04:17PM

37
#6919 - Gabriel Brousset / @GabBrousset

12/03/2020 at 07:37PM

37
#6920 - RandomDays ๐Ÿ•๐Ÿณ๏ธโ€๐ŸŒˆ๐Ÿž๐Ÿ‡จ๐Ÿ‡ฆ๐ŸฆŠ๐Ÿ’–๐Ÿ‡ง๐Ÿ‡ท๐Ÿ˜ˆ / @RandomDays906

01/17/2021 at 05:07PM

37
#6921 - andoku / @andoku_

01/26/2021 at 10:14PM

37
#6922 - tgDevAcc / @tg_acc

05/02/2021 at 07:56AM

37
#6923 - peter / @nbfhscl_peter

09/01/2021 at 07:59AM

37
#6924 - Peristocles / @Peristocles1

10/28/2021 at 09:55AM

37
#6925 - ใ‚„ใŽ / @yuehuou

05/13/2022 at 01:46PM

38
#6926 - Jeevan M R / @jee1mr

10/08/2015 at 08:33PM

38
#6927 - Tommy Lee / @Tomcentrate

10/13/2015 at 09:15PM

38
#6928 - Benedict Hobart / @superbenhobart

10/26/2015 at 05:50AM

38
#6929 - amol khatri / @khatri_amol

11/01/2015 at 05:40AM

38
#6930 - Javier Rey / @vierja

11/14/2015 at 12:17AM