Vimのウィンドウが勝手にびよんびよんなってたのしいやつができたぞ!!!
let s:i = 0
let s:s = 10
function! s:byonbyon()
let &columns = s:w + float2nr(cos(3.141592*(0.0 + s:i * s:s)/180.0) * 10)
let &lines = s:h + float2nr(sin(3.141592*(0.0 + s:i * s:s)/180.0) * 5)
let s:i += 1
call feedkeys(mode() ==# "i" ? "\<C-g>\<ESC>" : "g\<ESC>", "n")
endfunction
function! s:stop_byonbyon()
augroup ByonByon
autocmd!
augroup END
endfunction
function! s:start_byonbyon()
let s:w = &columns
let s:h = &lines
set lazyredraw updatetime=10
augroup ByonByon
autocmd!
autocmd CursorHold,CursorHoldI * call s:byonbyon()
augroup END
command! StopByonByon call <SID>stop_byonbyon()
endfunction
command! StartByonByon call <SID>start_byonbyon()
:StartByonByon
を実行するとびよんびよんなってたのしい。まったく仕事できない。止めるには:StopByonByon
を実行する。
参考資料: Emacsのウィンドウが勝手にびよんびよんなってたのしいやつ - hitode909の日記
疲れた!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
— mattn (@mattn_jp) September 4, 2015