Skip to content
Browse files

Added an Lboot command for opening Boot.scala.

  • Loading branch information...
1 parent 49e9bcf commit 3b718449864df6b849cf5f474c07ca6b0500ce35 @Shadowfiend committed Dec 14, 2010
Showing with 10 additions and 1 deletion.
  1. +9 −0 autoload/liftweb.vim
  2. +1 −1 plugins/liftweb.vim
View
9 autoload/liftweb.vim
@@ -136,6 +136,14 @@ function! s:CompleteView(ArgLead, CmdLine, CursorPos)
return s:views
endfunction
+function! s:OpenBoot()
+ if (!g:liftweb_enabled)
+ return
+ endif
+
+ execute ":edit " . escape("src/main/scala/bootstrap/liftweb/Boot.scala", " ")
+endfunction
+
function! g:SetupLiftweb()
if exists("g:liftweb_setup")
return
@@ -146,6 +154,7 @@ function! g:SetupLiftweb()
command Lspec call s:OpenTestForClass()
command Ltest Lspec
command Lclass call s:OpenClassForTest()
+ command Lboot call s:OpenBoot()
" command-completion-custom
call s:CommandForType("model")
View
2 plugins/liftweb.vim
@@ -7,7 +7,7 @@
" ============================================================================
-if !exists("g:SetupScala")
+if !exists("g:SetupLiftweb")
runtime! autoload/liftweb.vim
call g:SetupLiftweb()

0 comments on commit 3b71844

Please sign in to comment.
Something went wrong with that request. Please try again.