Skip to content

Instantly share code, notes, and snippets.

@mattn
Created September 21, 2011 04:21
Show Gist options
  • Save mattn/1231242 to your computer and use it in GitHub Desktop.
Save mattn/1231242 to your computer and use it in GitHub Desktop.
横スクロール
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