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

6996 active golfers, 31709 entries

Leaderboard (lowest score wins):
22
#1801 - Adam Soltys / @adamsoltys

06/07/2019 at 03:38AM

22
#1802 - Alex Yu / @sixianyu

06/07/2019 at 06:13AM

22
#1803 - Joo Ming / @JooMingJoo

06/07/2019 at 07:46AM

22
#1804 - Josh Levinson / @JLevNHV

06/07/2019 at 01:45PM

22
#1805 - Tomasz Pędzimąż / @YATomasz

06/07/2019 at 02:54PM

22
#1806 - dtjong / @dtjong2

06/07/2019 at 06:35PM

22
#1807 - Reportados123 / @reportados123

06/09/2019 at 12:51AM

22
#1808 - summingbest / @summingbest

06/10/2019 at 06:41AM

22
#1809 - Eirik Furuseth / @heplaphon

06/10/2019 at 09:21AM

22
#1810 - Fernando Motta / @Fmmotta01

06/10/2019 at 11:46AM

22
#1811 - Clarence Cheong / @IBrightStudioI

06/10/2019 at 01:34PM

22
#1812 - Koba / @lkoba

06/11/2019 at 08:38PM

22
#1813 - Charlie OConor / @charlieoconor

06/11/2019 at 09:50PM

22
#1814 - itsadok / @itsadok

06/12/2019 at 06:35AM

22
#1815 - 𝕛𝕓𝕣𝕠𝕨𝕟 / @Roguelazer

06/13/2019 at 08:08AM

22
#1816 - Frank Harrison / @doublethefish

06/15/2019 at 02:56PM

22
#1817 - Dominique M. / @19cupsofcoffee

06/16/2019 at 11:57PM

22
#1818 - Martijn Brekelmans / @Azeirah

06/17/2019 at 06:50PM

22
#1819 - Andrew Scholz / @ascholzonline

06/19/2019 at 08:21PM

22
#1820 - Matt Burg / @matsbleurgh

06/21/2019 at 08:55PM

22
#1821 - John Herman Schwit / @JohnHermanSchwi

06/22/2019 at 01:12AM

22
#1822 - hielke / @hielke24840788

06/22/2019 at 05:19PM

22
#1823 - ARK / @ARK69712394

06/22/2019 at 08:02PM

22
#1824 - hodenkobold66 / @hodenkobold66

06/25/2019 at 04:01PM

22
#1825 - Matt / @m4tty1c3

06/25/2019 at 11:58PM

22
#1826 - Nathan Knox / @the_nathan_knox

06/26/2019 at 03:13PM

22
#1827 - Johnny footlight / @JFootlight

06/28/2019 at 07:01PM

22
#1828 - Test Account / @testycc

06/29/2019 at 12:26PM

22
#1829 - Wizard_KumaChan / @Wizard_KumaChan

06/30/2019 at 11:39AM

22
#1830 - せいほう / @FICSQF

07/03/2019 at 05:28AM