restructured sf.vim and fixed some bugs