Skip to content

Commit

Permalink
Publish g:ProjectRoot() function
Browse files Browse the repository at this point in the history
  • Loading branch information
rainux committed Nov 20, 2015
1 parent aca8fac commit 0fe3cf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ nmap ,s :source $HOME/.vimrc<CR>
nmap ,v :tabe $HOME/.vim/.vimrc<CR>
" ,t ,b is activate Command-T
function! s:ProjectRoot()
function! g:ProjectRoot()
if exists('b:rails_root')
return b:rails_root
elseif exists('b:bundler_root')
Expand All @@ -451,7 +451,7 @@ function! s:ProjectRoot()
endif
endfunction

nmap ,t :execute 'CommandT ' . fnameescape(<SID>ProjectRoot())<CR>
nmap ,t :execute 'CommandT ' . fnameescape(g:ProjectRoot())<CR>
nmap ,b :CommandTBuffer<CR>
" ,> ,< is next or prev error
Expand Down

0 comments on commit 0fe3cf6

Please sign in to comment.