タグ

ブックマーク / tokuhirom.github.io (1)

  • tokuhirom's blog

    なんかこんなのかいた。 function! s:pm_template() let path = substitute(expand('%'), '.*lib/', '', 'g') let path = substitute(path, '[\\/]', '::', 'g') let path = substitute(path, '\.pm$', '', 'g') call append(0, 'package ' . path . ';') call append(1, 'use strict;') call append(2, 'use warnings;') call append(3, 'use utf8;') call append(4, '') call append(5, '') call append(6, '') call append(7, '1;') call c

    tokuhirom
    tokuhirom 2012/10/03
    僕のむかしのブログを発掘しました。かっこいい。
  • 1