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 50b1517e9aad890002000004

Printable ASCII characters

From a blank input, print all 95 printing ASCII characters one per line, from space to tilde.

Start file

End file
 
!
"
#
$
%
&
'
(
)
*
+
,
-
.
/
0
1
2
3
4
5
6
7
8
9
:
;
<
=
>
?
@
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
[
\
]
^
_
`
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
{
|
}
~

View Diff

1c1,95
< 
---
>  
> !
> "
> #
> $
> %
> &
> '
> (
> )
> *
> +
> ,
> -
> .
> /
> 0
> 1
> 2
> 3
> 4
> 5
> 6
> 7
> 8
> 9
> :
> ;
> <
> =
> >
> ?
> @
> A
> B
> C
> D
> E
> F
> G
> H
> I
> J
> K
> L
> M
> N
> O
> P
> Q
> R
> S
> T
> U
> V
> W
> X
> Y
> Z
> [
> \
> ]
> ^
> _
> `
> a
> b
> c
> d
> e
> f
> g
> h
> i
> j
> k
> l
> m
> n
> o
> p
> q
> r
> s
> t
> u
> v
> w
> x
> y
> z
> {
> |
> }
> ~

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 42 remaining solutions by signing in and submitting your own entry
#43 Tenor Biel / @TenorB - Score: 50 - 06/10/13 @ 01:33
i32<Esc>qqYp<C-A>q93@q:%s/.\+/\=nr2chae<BS>r(submatch(0))/<CR>ZZ

@TenorB: CRAP! I messed up the spelling of char, and now I'm paying for it by 2 points!

1 comment


#44 Oliver Caldwell / @OliverCaldwell - Score: 50 - 06/24/14 @ 18:08
i32<Esc>qqyyp<C-A>q93@q:%s/\d\+/\=nr2char(submatch(0))/<CR>ZZ

0 comments


Created by: @udioica

44 active golfers, 142 entries

Leaderboard (lowest score wins):
22
#1 - Urtica dioica / @udioica

11/28/2012 at 06:21AM

22
#2 - Petro Тrouq / @zulolosi

02/25/2013 at 08:28AM

22
#3 - John Braxler / @braxler

08/19/2014 at 08:34PM

22
#4 - 何晨 / @hechen0_

09/22/2016 at 05:30PM

22
#5 - Janzen / @__Coos

09/24/2022 at 06:51AM

22
#6 - Peppa Pig / @PeppaPi95550250

06/09/2024 at 06:49AM

23
#7 - Conner McDaniel / @connermcd

11/28/2012 at 04:15AM

23
#8 - Joonas Pihlajamaa / @jokkebk

03/21/2014 at 11:56AM

23
#9 - Jon Krause / @jkrause314

02/03/2016 at 10:17PM

23
#10 - russellzhaomao / @russellzhaomao

06/07/2022 at 12:41AM

25
#11 - Va bien te faire fou / @mplayer_vimgolf

12/10/2012 at 05:56PM

26
#12 - Édouard M'tou / @DouardM

12/19/2012 at 07:46PM

31
#13 - Julian / @ShumpEvenwood

11/27/2012 at 01:03PM

31
#14 - Hubba / @HubbaBubbaFett

11/28/2012 at 05:48PM

32
#15 - Kerson Hsiao / @KersonHsiao

11/25/2012 at 09:56AM

32
#16 - Drew Neil / @nelstrom

11/26/2012 at 09:38PM

32
#17 - a24f0600 / @a24f0600

11/28/2012 at 10:59AM

32
#18 - 张文远 / @zhwenyuan

05/20/2013 at 12:07PM

32
#19 - pftb12345 / @pftb12345

04/17/2015 at 03:57PM

35
#20 - Marcin Szamotulski / @me_coot

11/25/2012 at 03:29PM

35
#21 - Anthony Gargiulo / @argargablar

11/27/2012 at 09:25PM

36
#22 - Tim Chase / @gumnos

11/25/2012 at 12:59AM

36
#23 - Vasil Sakarov / @vsakarov

11/25/2012 at 08:46PM

36
#24 - shahanavaz m / @shahanavazm

04/04/2024 at 04:31AM

38
#25 - Pete Johns / @johnsyweb

11/25/2012 at 03:47AM

38
#26 - Kai Yuan / @kentyuan

05/12/2013 at 10:02PM

39
#27 - Jonathan Kim / @jonnykim

08/27/2013 at 07:38PM

39
#28 - Nic West / @west_nic

06/24/2014 at 06:55PM

41
#29 - James / @Dronak

10/13/2023 at 06:27PM

42
#30 - David Stensland / @DavidStensland

05/31/2015 at 01:21PM