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
#1951 - Xùdōng Yáng / @Wyverald

10/21/2019 at 06:39AM

22
#1952 - Luat Hoang / @luat1203

10/22/2019 at 05:56AM

22
#1953 - てら@FighTimerで作業記録 / @sorahako0515

10/23/2019 at 10:10AM

22
#1954 - yousef Ibrahim / @YucefIbrahim

10/23/2019 at 10:27PM

22
#1955 - liad oz / @LiadOzIL

10/24/2019 at 06:37AM

22
#1956 - hackday / @yupi0

10/24/2019 at 10:26AM

22
#1957 - Ghost1 / @Ghost186629303

10/24/2019 at 03:21PM

22
#1958 - Pierroninio / @uftos

10/25/2019 at 08:38AM

22
#1959 - Gregory Furter / @gfurter

10/25/2019 at 03:23PM

22
#1960 - OldSchoolRunescapeGuide / @SmellsonM

10/27/2019 at 07:19AM

22
#1961 - Lory / @Lory46845742

10/28/2019 at 03:25PM

22
#1962 - Serghei Cebotari / @scebotari66

10/28/2019 at 08:43PM

22
#1963 - Harrison / @ardentcow

10/31/2019 at 02:46AM

22
#1964 - trafficone / @trafficone

11/02/2019 at 04:30AM

22
#1965 - sc / @sc34507146

11/05/2019 at 04:12PM

22
#1966 - Chris Covert / @covertcj

11/06/2019 at 09:03PM

22
#1967 - Melvin Cheung / @MelvinCheung

11/07/2019 at 01:01PM

22
#1968 - Sebastien Premont / @spremont

11/07/2019 at 02:51PM

22
#1969 - Ebi / @ehan6

11/08/2019 at 08:43PM

22
#1970 - Daniel Klepacki / @daniel_klepacki

11/10/2019 at 02:14PM

22
#1971 - 周之越 / @zhiyue_zhou

11/11/2019 at 03:51AM

22
#1972 - LinusPoutine / @LinusPoutine

11/11/2019 at 04:22PM

22
#1973 - Zachary Neubert / @Mr_Saturn16347

11/12/2019 at 06:41PM

22
#1974 - Dan Correll / @heavyd1001

11/15/2019 at 03:48AM

22
#1975 - Jangsea Park / @jangsea

11/15/2019 at 03:24PM

22
#1976 - Martin Cooke / @cakemonitor

11/15/2019 at 09:09PM

22
#1977 - eshel / @EshelBM

11/16/2019 at 02:36AM

22
#1978 - Micael Jarniac / @MicaelJarniac

11/16/2019 at 10:13PM

22
#1979 - Alexander Volkovsky / @alan_aers

11/17/2019 at 08:12PM

22
#1980 - Punk Rock Toot Toot / @welcometo2006

11/20/2019 at 08:44PM