From 5f1223fbc5285689db812236c9100329740a805b Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 29 Jul 2014 13:03:49 +0200 Subject: Major update --- ftplugin/ruby.vim | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'ftplugin/ruby.vim') diff --git a/ftplugin/ruby.vim b/ftplugin/ruby.vim index a8ef8866..f406cc88 100644 --- a/ftplugin/ruby.vim +++ b/ftplugin/ruby.vim @@ -69,8 +69,8 @@ endif function! s:query_path(root) let code = "print $:.join %q{,}" - if &shell =~# 'sh' && $PATH !~# '\s' - let prefix = 'env PATH='.$PATH.' ' + if &shell =~# 'sh' + let prefix = 'env PATH='.shellescape($PATH).' ' else let prefix = '' endif @@ -190,15 +190,16 @@ if !exists("g:no_plugin_maps") && !exists("g:no_ruby_maps") endif if maparg("\",'n') == '' - nnoremap :exe v:count1."tag =RubyCursorIdentifier()" - nnoremap g :exe "tjump =RubyCursorIdentifier()" - nnoremap g] :exe "tselect =RubyCursorIdentifier()" - nnoremap ] :exe v:count1."stag =RubyCursorIdentifier()" - nnoremap :exe v:count1."stag =RubyCursorIdentifier()" - nnoremap g :exe "stjump =RubyCursorIdentifier()" - nnoremap g] :exe "stselect =RubyCursorIdentifier()" - nnoremap } :exe "ptag =RubyCursorIdentifier()" - nnoremap g} :exe "ptjump =RubyCursorIdentifier()" + cnoremap foldopen if &foldopen =~# 'tag'exe 'norm! zv'endif + nnoremap