Vertical Limit


#1

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" ]


#2
22 keys

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


#3

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


#4

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


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

#6

@TeddyDD How did you do the nice formatting?


#7
[details="desc"]
 stuff
[/details]

#8
lazy to count keys
%<a-s><a-S>i"<a-;><a-J>,<esc>I[<space><esc>A<space>]<esc>