summaryrefslogtreecommitdiffstats
path: root/ftplugin/scala.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2013-12-13 01:37:01 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2013-12-13 01:37:01 +0100
commitedd5ee63e66d9ef166034d9ac5bed132f501ecb9 (patch)
treefba293d90821eea5e067c7b5eea3526df0f26254 /ftplugin/scala.vim
parent8a255002df1f6d02ef7ca9503be1a7d7234acef8 (diff)
downloadvim-polyglot-edd5ee63e66d9ef166034d9ac5bed132f501ecb9.tar.gz
vim-polyglot-edd5ee63e66d9ef166034d9ac5bed132f501ecb9.zip
Updatev1.4.2
Diffstat (limited to 'ftplugin/scala.vim')
-rw-r--r--ftplugin/scala.vim13
1 files changed, 9 insertions, 4 deletions
diff --git a/ftplugin/scala.vim b/ftplugin/scala.vim
index cdd1a74d..6db56d04 100644
--- a/ftplugin/scala.vim
+++ b/ftplugin/scala.vim
@@ -117,16 +117,21 @@ if globpath(&rtp, 'plugin/fuf.vim') != ''
return scala#GetDirForFuzzyFinder(a:from, 'src/../')
endfunction
- nnoremap <buffer> <silent> ,ft :FufFile <c-r>=scala#GetTestDirForFuzzyFinder('%:p:h')<cr><cr>
- nnoremap <buffer> <silent> ,fs :FufFile <c-r>=scala#GetMainDirForFuzzyFinder('%:p:h')<cr><cr>
- nnoremap <buffer> <silent> ,fr :FufFile <c-r>=scala#GetRootDirForFuzzyFinder('%:p:h')<cr><cr>
+ " If you want to disable the default key mappings, write the following line in
+ " your ~/.vimrc
+ " let g:scala_use_default_keymappings = 0
+ if get(g:, 'scala_use_default_keymappings', 1)
+ nnoremap <buffer> <silent> <Leader>ft :FufFile <c-r>=scala#GetTestDirForFuzzyFinder('%:p:h')<cr><cr>
+ nnoremap <buffer> <silent> <Leader>fs :FufFile <c-r>=scala#GetMainDirForFuzzyFinder('%:p:h')<cr><cr>
+ nnoremap <buffer> <silent> <Leader>fr :FufFile <c-r>=scala#GetRootDirForFuzzyFinder('%:p:h')<cr><cr>
+ endif
endif
" If you want to disable the default key mappings, write the following line in
" your ~/.vimrc
" let g:scala_use_default_keymappings = 0
if get(g:, 'scala_use_default_keymappings', 1)
- nnoremap <buffer> ,jt :call JustifyCurrentLine()<cr>
+ nnoremap <buffer> <Leader>jt :call JustifyCurrentLine()<cr>
endif
"