To be able to edit Scala source files in Vim comfortably, download the following file, and un-tar it in your $HOME/.vim directory. scala_vim.tbz2 This archive when expanded contains: ftdetect/scala.vim indent/scala.vim syntax/scala.vim These files were taken from the latest (as of July 22nd 2008) version available from scala-tools repository The idea originally comes from this blog post
俺はVimのファイルタイプは " ftpluginディレクトリ作るのめんどい autocmd FileType * call s:LoadWhenFileType() とか書いて全ての設定をs:LoadWhenFileType()に書いてるわけですが その中のScala用の設定をここに晒しておきます。 .vimrcの876行目より。だいたいこんな感じ。 if &filetype == 'scala' setlocal ts=4 sw=4 " for javadoc setlocal iskeyword+=@-@ setlocal includeexpr=substitute(v:fname,'\\.','/','g') setlocal suffixesadd=.scala setlocal suffixes+=.class setlocal comments& comments^=sO:
その他/疑問 遭遇回数:1回 Content Filter interface から trait への変換 状況&動機:Java の Content Filter interface を Scala の trait へ変換する。 タイプ: 進化タイプ: 前提: 構成要素: before: // Java public class Item { private String name; public Item(String name) { this.name = name; } public String getName() { return name; } } // Java public interface ItemFilter { // Content Filter public boolean accept(Item item); } // java public class Ite
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く