From edd5ee63e66d9ef166034d9ac5bed132f501ecb9 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 13 Dec 2013 01:37:01 +0100 Subject: Update --- ftplugin/scala.vim | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'ftplugin/scala.vim') 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 ,ft :FufFile =scala#GetTestDirForFuzzyFinder('%:p:h') - nnoremap ,fs :FufFile =scala#GetMainDirForFuzzyFinder('%:p:h') - nnoremap ,fr :FufFile =scala#GetRootDirForFuzzyFinder('%:p:h') + " 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 ft :FufFile =scala#GetTestDirForFuzzyFinder('%:p:h') + nnoremap fs :FufFile =scala#GetMainDirForFuzzyFinder('%:p:h') + nnoremap fr :FufFile =scala#GetRootDirForFuzzyFinder('%:p:h') + 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 ,jt :call JustifyCurrentLine() + nnoremap jt :call JustifyCurrentLine() endif " -- cgit v1.2.3