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

5989 active golfers, 26849 entries

Leaderboard (lowest score wins):
22
#841 - Remus Dalrymple / @bornintheflames

04/06/2017 at 11:59PM

22
#842 - vimgolfer864 / @vimgolfer864

04/07/2017 at 05:34PM

22
#843 - alison brie / @al_br_

04/07/2017 at 08:10PM

22
#844 - Kfir Gollan / @kfirgollan

04/07/2017 at 09:25PM

22
#845 - yukkiy_guitar / @yukkiy_guitar

04/08/2017 at 02:52AM

22
#846 - Ernesto Barros / @ernestobarros7

04/09/2017 at 09:09PM

22
#847 - _nkgm / @_nkgm

04/10/2017 at 12:33PM

22
#848 - Niko / @NikoKrenn

04/10/2017 at 03:07PM

22
#849 - sharklasers552 / @sharklasers552

04/10/2017 at 11:41PM

22
#850 - Michael Robinson / @laxdog

04/11/2017 at 12:10PM

22
#851 - Sebastian Rapp / @se_rapp

04/11/2017 at 09:38PM

22
#852 - Dwain L. Maralack / @dwainm

04/12/2017 at 07:07PM

22
#853 - Austin Ray / @austospumanto

04/14/2017 at 09:56AM

22
#854 - Julien Philippon / @Apoutchika

04/14/2017 at 05:20PM

22
#855 - Will Clardy / @quexxon

04/14/2017 at 06:56PM

22
#856 - Solomon / @Trugbildjaeger

04/15/2017 at 01:19PM

22
#857 - vvv / @vvv71630351

04/15/2017 at 02:31PM

22
#858 - Ruslan / @zimdero

04/15/2017 at 06:53PM

22
#859 - Pekka / @avainasiakas

04/17/2017 at 06:59PM

22
#860 - 梧桐王子 / @WutongYujie

04/19/2017 at 05:59AM

22
#861 - Nguyen Ngoc Trung / @trunga0

04/19/2017 at 09:36AM

22
#862 - Peter Gundel / @peterfication

04/19/2017 at 03:52PM

22
#863 - Fausto NA / @brainlessdev

04/19/2017 at 04:03PM

22
#864 - aumgn / @aum9n

04/19/2017 at 05:15PM

22
#865 - Dahyun Kim / @kimdhyun99

04/20/2017 at 02:36AM

22
#866 - Akash Khan / @akash93

04/20/2017 at 08:36AM

22
#867 - Tom BP / @ThosBP

04/20/2017 at 08:40AM

22
#868 - Harry Mills / @Haegin

04/20/2017 at 08:08PM

22
#869 - Danton Noriega / @dantonnoriega

04/21/2017 at 05:41AM

22
#870 - Erik Vesteraas / @evestera

04/22/2017 at 04:21PM