ミームの死骸を待ちながら

We are built as gene machines and cultured as meme machines, but we have the power to turn against our creators. We, alone on earth, can rebel against the tyranny of the selfish replicators. - Richard Dawkins "Selfish Gene"

We are built as gene machines and cultured as meme machines, but we have the power to turn against our creators.
We, alone on earth, can rebel against the tyranny of the selfish replicators.
- Richard Dawkins "Selfish Gene"

Vimでスクリプトをインデント


上の記事だけじゃなんなので。

プログラム書くならもうVim以外考えられない身体になってしまいました。唐突だが、ファイル全体を文法に従ってインデントする操作を書く。

gg => Shift+V => Shift+G => "=(イコール)"


これはよく使う。最初にgg押して行頭に移動した後は、Shiftを押しっぱなしでポン、ポン、ポンと押せばいいのがかなり楽だ。
注意点は、行頭から始まっていないと意味がない文法…すなわち、ヒアドキュメント(EOFとか)やブロック単位のコメントアウト(=beginと=end)がキャンセルされてしまうところ*1。インデントした後にチェックするのがめんどくさいので、何か設定できないかなぁ


あと、

引用多いと見にくいから少し書式を変えようと思ったら、
はてダのCSSで"blockquote"の設定ができない!
なんでだ?

*1:たまにちゃんと文頭から始まってくれる。この違いは何?