2012-03-01から1日間の記事一覧

vimftplugin

前に書いた.vimの時にウンたらってやつ .vim/ftplugin/vim.vim ってファイルを作って, そこに .vim の時の動作を書く。 とりあえずvimscriptを簡易に実行してくれるものくらいは書いてみる。 function! Vscexe() w % source % endfunction imap ;s :call Vsc…

project euler

Project Eulerをvimscriptで解く。楽しい。 とりあえず1, 2問くらいは載せてみる。 " If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. " Find the sum of all the mul…