Let's write β

プログラミング中にできたことか、思ったこととか

2011-07-04から1日間の記事一覧

Lisp inplementation by VimScript

";;;; lisp.vim ";;;; Lisp inplementation by vim script ";;;; Author: Pocket <poketo7878@gmail.com> "Global variables"{{{ let s:nil = 'nil' "}}} "Type check functions"{{{ function! IsNumber(thing) if type(a:thing) == type(1) return 1 else return 0 endif endfunct</poketo7878@gmail.com>…

Vimの画面でアニメーション

Vim

function! InitScr() silent % delete _ let l:w = winwidth('%') let l:h = winheight('%') setlocal nonu setlocal guicursor=a:blinkon0 let l:spaceLine = repeat(' ', l:w - 1) for l in range(1, l:h+1) call setline(l,l:spaceLine) endfor endfuncti…