Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function! Play()
- let commands = []
- redir => commandstr
- function Do
- redir END
- let commands = split(commandstr, '\n')[1:-2]
- for c in commands
- exe substitute(c, '^\s*\d\+\s*', '', '')
- redraw!
- sleep 1
- endfor
- endfunction
- function! Do()
- normal G
- call setline('.', 'one two three four five')
- call setline('.', split(getline('.'), '\s\+', '\n'))
- exe "normal \<c-v>$G"
- normal y
- normal P
- endfunction
- call Play()
Add Comment
Please, Sign In to add comment