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):
43
#31 - Asmund / @herrasbe

12/24/2012 at 12:51AM

43
#32 - nickGPT / @nickandbro

08/28/2024 at 07:24PM

45
#33 - mhb / @mhbvim

11/25/2012 at 06:51AM

45
#34 - kana / @kana1

08/28/2013 at 09:08AM

45
#35 - Richard Jones / @metabrew

06/24/2014 at 06:44PM

46
#36 - David Barnett / @mu_mind

11/25/2012 at 02:12AM

47
#37 - Eric Andres / @eric_m_andres

12/04/2012 at 09:50PM

47
#38 - Jonathan Crossley / @_jcrossley

09/11/2015 at 02:10AM

48
#39 - Rolf Bjaanes / @rolfb

11/25/2012 at 12:26AM

48
#40 - Pawel Obrok / @mrYapee

11/25/2012 at 05:51PM

48
#41 - David Escribano / @DavidEGx

06/24/2014 at 06:19PM

48
#42 - Alex Pounds / @acreature

06/24/2014 at 06:26PM

50
#43 - Tenor Biel / @TenorB

06/10/2013 at 01:33AM

50
#44 - Oliver Caldwell / @OliverCaldwell

06/24/2014 at 06:08PM