From b6949bcbcd6862f2d074f4b6dcd7fff2301feac0 Mon Sep 17 00:00:00 2001 From: Wenlong Che Date: Fri, 22 Mar 2013 00:00:00 +0000 Subject: [PATCH] Version 2.1 Add the default keys for Source Explorer's fast way to multi-defs jumping. More details, please refer to the Change Log via https://github.com/wesleyche/SrcExpl --- plugin/trinity.vim | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/plugin/trinity.vim b/plugin/trinity.vim index 9370d47..8ab7c2e 100644 --- a/plugin/trinity.vim +++ b/plugin/trinity.vim @@ -7,8 +7,8 @@ " Authors: Wenlong Che " " Homepage: http://www.vim.org/scripts/script.php?script_id=2347 " " GitHub: https://github.com/wesleyche/Trinity " -" Version: 2.0 " -" Last Change: September 16th, 2012 " +" Version: 2.1 " +" Last Change: March 21th, 2013 " " Licence: This program is free software; you can redistribute it and / or " " modify it under the terms of the GNU General Public License as " " published by the Free Software Foundation; either version 2, or " @@ -123,7 +123,11 @@ endfunction " }}} function! Trinity_InitSourceExplorer() " // Set the height of Source Explorer window " - let g:SrcExpl_winHeight = 8 + if has("unix") + let g:SrcExpl_winHeight = 13 + else + let g:SrcExpl_winHeight = 8 + endif " // Set 1 ms for refreshing the Source Explorer " let g:SrcExpl_refreshTime = 1 " // Set "Enter" key to jump into the exact definition context " @@ -146,9 +150,13 @@ function! Trinity_InitSourceExplorer() let g:SrcExpl_isUpdateTags = 0 " // Use program 'ctags' with argument '--sort=foldcase -R' to create or " " // update a tags file " - let g:SrcExpl_updateTagsCmd = "ctags --sort=foldcase -R ." - " // Set "" key for updating the tags file artificially " - let g:SrcExpl_updateTagsKey = "" + " let g:SrcExpl_updateTagsCmd = "ctags --sort=foldcase -R ." + " // Set "" key for updating the tags file artificially " + " let g:SrcExpl_updateTagsKey = "" + " // Set "" key for displaying the previous definition in the jump list " + let g:SrcExpl_prevDefKey = "" + " // Set "" key for displaying the next definition in the jump list " + let g:SrcExpl_nextDefKey = "" endfunction " }}}