Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit b6949bcbcd6862f2d074f4b6dcd7fff2301feac0 1 parent c9e4a46
Wenlong Che authored March 22, 2013 vim-scripts committed March 31, 2013

Showing 1 changed file with 14 additions and 6 deletions. Show diff stats Hide diff stats

  1. 20  plugin/trinity.vim
20  plugin/trinity.vim
@@ -7,8 +7,8 @@
7 7
 " Authors:     Wenlong Che <wenlong.che@gmail.com>                             "
8 8
 " Homepage:    http://www.vim.org/scripts/script.php?script_id=2347            "
9 9
 " GitHub:      https://github.com/wesleyche/Trinity                            "
10  
-" Version:     2.0                                                             "
11  
-" Last Change: September 16th, 2012                                            "
  10
+" Version:     2.1                                                             "
  11
+" Last Change: March 21th, 2013                                                "
12 12
 " Licence:     This program is free software; you can redistribute it and / or "
13 13
 "              modify it under the terms of the GNU General Public License as  "
14 14
 "              published by the Free Software Foundation; either version 2, or "
@@ -123,7 +123,11 @@ endfunction " }}}
123 123
 function! <SID>Trinity_InitSourceExplorer()
124 124
 
125 125
     " // Set the height of Source Explorer window                                  "
126  
-    let g:SrcExpl_winHeight = 8
  126
+    if has("unix")
  127
+        let g:SrcExpl_winHeight = 13
  128
+    else
  129
+        let g:SrcExpl_winHeight = 8
  130
+    endif
127 131
     " // Set 1 ms for refreshing the Source Explorer                               "
128 132
     let g:SrcExpl_refreshTime = 1
129 133
     " // Set "Enter" key to jump into the exact definition context                 "
@@ -146,9 +150,13 @@ function! <SID>Trinity_InitSourceExplorer()
146 150
     let g:SrcExpl_isUpdateTags = 0
147 151
     " // Use program 'ctags' with argument '--sort=foldcase -R' to create or       "
148 152
     " // update a tags file                                                        "
149  
-    let g:SrcExpl_updateTagsCmd = "ctags --sort=foldcase -R ."
150  
-    " // Set "<F10>" key for updating the tags file artificially                   "
151  
-    let g:SrcExpl_updateTagsKey = "<F10>"
  153
+    " let g:SrcExpl_updateTagsCmd = "ctags --sort=foldcase -R ."
  154
+    " // Set "<F12>" key for updating the tags file artificially                   "
  155
+    " let g:SrcExpl_updateTagsKey = "<F12>"
  156
+    " // Set "<F3>" key for displaying the previous definition in the jump list    "
  157
+    let g:SrcExpl_prevDefKey = "<F3>"
  158
+    " // Set "<F4>" key for displaying the next definition in the jump list        "
  159
+    let g:SrcExpl_nextDefKey = "<F4>"
152 160
 
153 161
 endfunction " }}}
154 162
 

0 notes on commit b6949bc

Please sign in to comment.
Something went wrong with that request. Please try again.