Skip to content
Browse files

Turning off CtrlP - doesn't quite work. Added to the customization co…

…de for XPT so that I can find packages when doing multi jvm testing with Akka
  • Loading branch information...
1 parent 63bf928 commit d7e012ff72105b573ac338f123d6acba93fbc353 Derek Wyatt committed
Showing with 14 additions and 0 deletions.
  1. +10 −0 vimrc
  2. +4 −0 xpt-personal/ftplugin/scala/scala.xpt.vim
View
10 vimrc
@@ -489,6 +489,16 @@ nmap <silent> ,fm :FufMruFile<cr>
nmap <silent> ,fp :FufFile ~/git/*<cr>
"-----------------------------------------------------------------------------
+" Ctrl-P Settings
+"-----------------------------------------------------------------------------
+let g:loaded_ctrlp = 1
+"nmap <silent> ,fb :CtrlPBuffer<cr>
+"nmap <silent> ,ff :CtrlP<cr>
+"let g:ctrlp_custom_ignore = '\.git$\|\.hg$\|\.svn$|\.swp$|\.swo$|^.*\.class$'
+"let g:ctrlp_match_window_bottom = 0
+"let g:ctrlp_open_new_file = 'r'
+
+"-----------------------------------------------------------------------------
" Gundo Settings
"-----------------------------------------------------------------------------
nmap <c-F5> :GundoToggle<cr>
View
4 xpt-personal/ftplugin/scala/scala.xpt.vim
@@ -26,6 +26,10 @@ function! s:f.getPackageForFile(...)
let needle = 'src/test/scala'
let idx = stridx(dir, needle)
endif
+ if idx == -1
+ let needle = 'src/multi-jvm/scala'
+ let idx = stridx(dir, needle)
+ endif
if idx != -1
let subdir = strpart(dir, idx + strlen(needle) + 1)
let package = substitute(subdir, '/', '.', 'g')

0 comments on commit d7e012f

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