Vertical Limit

http://www.vimgolf.com/challenges/50048db8cdc4060002000004

Best vim score: 21

Vertical Limit

Transform a succession of one word lines to a an array of strings

Start file:

There
is
no
vertical
limit
for
vim
Ninjas

End file:

[ "There", "is", "no", "vertical", "limit", "for", "vim", "Ninjas" ]

22 keys

7Ci"<esc>A",<esc><a-j>xi[<space><esc>A<backspace><space>]<esc>,q

Nice! I think you can shave 1 key by doing I instead of xi.

1 Like

yup, so we are even with Vim without even trying hard :laughing:

18 keys
7Ci"<end>"<a-;><a-J>,<home>[<space><end><space>]<esc>,q
2 Likes

@TeddyDD How did you do the nice formatting?

[details="desc"]
 stuff
[/details]
1 Like
lazy to count keys
%<a-s><a-S>i"<a-;><a-J>,<esc>I[<space><esc>A<space>]<esc>