Permalink
Browse files

Added a couple of simple snippets for SBT and ignored vim-sbt

  • Loading branch information...
1 parent 16c4e68 commit 6c4e4e7660e68662360f4b44c97860c3987c1a2f @derekwyatt committed Jan 20, 2012
Showing with 22 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +21 −0 xpt-personal/ftplugin/sbt/sbt.xpt.vim
View
@@ -26,6 +26,7 @@ vim-orgmode
vim-javascript
vim-conque
vim-jade
+vim-sbt
*.swp
.netrwhist
passwords.vim
@@ -0,0 +1,21 @@
+
+XPTemplate priority=personal
+
+let s:f = g:XPTfuncs()
+
+function! s:f.getCurrentDir(...)
+ return expand('%:p:h:t')
+endfunction
+
+XPT new hint=Creates\ a\ new\ build.sbt\ file
+XSET name|def=getCurrentDir()
+name := "`name^"
+
+version := "`0.1^"
+
+scalaVersion := "`2.9.1^"
+`^
+
+XPT mod hint=New\ module\ for\ dependency
+`groupId^ % `artifactId^ % `revision^
+

0 comments on commit 6c4e4e7

Please sign in to comment.