added snippets, rewriting some function in sc.vim