diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2013-12-13 01:37:01 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2013-12-13 01:37:01 +0100 |
commit | edd5ee63e66d9ef166034d9ac5bed132f501ecb9 (patch) | |
tree | fba293d90821eea5e067c7b5eea3526df0f26254 /ftplugin/scala.vim | |
parent | 8a255002df1f6d02ef7ca9503be1a7d7234acef8 (diff) | |
download | vim-polyglot-1.4.2.tar.gz vim-polyglot-1.4.2.zip |
Updatev1.4.2
Diffstat (limited to 'ftplugin/scala.vim')
-rw-r--r-- | ftplugin/scala.vim | 13 |
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 " |