Skip to content

Commit

Permalink
Version 2.1
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wenlongche authored and vim-scripts committed Apr 1, 2013
1 parent c9e4a46 commit b6949bc
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions plugin/trinity.vim
Expand Up @@ -7,8 +7,8 @@
" Authors: Wenlong Che <wenlong.che@gmail.com> "
" 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 "
Expand Down Expand Up @@ -123,7 +123,11 @@ endfunction " }}}
function! <SID>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 "
Expand All @@ -146,9 +150,13 @@ function! <SID>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 "<F10>" key for updating the tags file artificially "
let g:SrcExpl_updateTagsKey = "<F10>"
" let g:SrcExpl_updateTagsCmd = "ctags --sort=foldcase -R ."
" // Set "<F12>" key for updating the tags file artificially "
" let g:SrcExpl_updateTagsKey = "<F12>"
" // Set "<F3>" key for displaying the previous definition in the jump list "
let g:SrcExpl_prevDefKey = "<F3>"
" // Set "<F4>" key for displaying the next definition in the jump list "
let g:SrcExpl_nextDefKey = "<F4>"

endfunction " }}}

Expand Down

0 comments on commit b6949bc

Please sign in to comment.