Created
September 21, 2011 04:21
-
-
Save mattn/1231242 to your computer and use it in GitHub Desktop.
横スクロール
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let s:screen = [ | |
\" ", | |
\" # # # # # # # ", | |
\" # # # # # # # # ### # # # ", | |
\" # # # # # # # # # ##### # # ", | |
\" # # ### # # # # # # ## ####### # # ", | |
\" # ##### # #### # ### # # ## ### ### #### # # #### ", | |
\" # # # # #### #### # # ###### # # ### # ### # ##### ", | |
\" # # #### # # # # ## # # # # ## # # ", | |
\" # # # # # # ## # # # # # # # # ", | |
\" # # # # # # ## # # # #### # # ", | |
\" # # #### # ## # # ## # ###### # # # # ", | |
\" # # ## # # # # # # # # # ## # # ## # ", | |
\" # # # # # # # # # # # # # # # # # # ", | |
\" # ### ##### # # ## ## #### # # # # ", | |
\" # # # # ", | |
\" " | |
\] | |
function! s:init() | |
edit `='==YOKOSUKU=='` | |
setlocal buftype=nowrite | |
setlocal noswapfile | |
setlocal bufhidden=wipe | |
setlocal buftype=nofile | |
setlocal nonumber | |
setlocal nolist | |
setlocal nowrap | |
setlocal nocursorline | |
setlocal nocursorcolumn | |
call setline(1, s:screen) | |
redraw | |
let loop = 230 | |
while loop > 0 | |
let loop -= 1 | |
if nr2char(getchar(0)) == 'q' | |
break | |
endif | |
exe "normal gg0\<c-v>G0x" | |
sleep 50ms | |
redraw | |
endwhile | |
bdelete | |
endfunction | |
call s:init() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment