summaryrefslogtreecommitdiffstats
path: root/ftplugin/ruby.vim
diff options
context:
space:
mode:
authorDan Reif <dan.reif@collectivehealth.com>2018-06-05 13:50:18 -0700
committerDan Reif <dan.reif@collectivehealth.com>2018-06-05 13:50:18 -0700
commit1f34e0adcfb54b45760d7570d4c270a939daa03b (patch)
tree3016d45f4f2714937790a989be8adda3fe942ae3 /ftplugin/ruby.vim
parenta26134de3c09f9725667e14e7073a701bcff4e19 (diff)
downloadvim-polyglot-1f34e0adcfb54b45760d7570d4c270a939daa03b.tar.gz
vim-polyglot-1f34e0adcfb54b45760d7570d4c270a939daa03b.zip
Update (periodic rebuild)
Diffstat (limited to 'ftplugin/ruby.vim')
-rw-r--r--ftplugin/ruby.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/ftplugin/ruby.vim b/ftplugin/ruby.vim
index 9189730b..b844bfdf 100644
--- a/ftplugin/ruby.vim
+++ b/ftplugin/ruby.vim
@@ -46,7 +46,7 @@ endif
setlocal formatoptions-=t formatoptions+=croql
setlocal include=^\\s*\\<\\(load\\>\\\|require\\>\\\|autoload\\s*:\\=[\"']\\=\\h\\w*[\"']\\=,\\)
-setlocal includeexpr=substitute(substitute(v:fname,'::','/','g'),'\%(\.rb\)\=$','.rb','')
+setlocal includeexpr=substitute(substitute(v:fname,'::','/','g'),'\\%(\\.rb\\)\\=$','.rb','')
setlocal suffixesadd=.rb
if exists("&ofu") && has("ruby")
@@ -151,7 +151,7 @@ let b:undo_ftplugin = "setl fo< inc< inex< sua< def< com< cms< path< tags< kp<"
function! s:map(mode, flags, map) abort
let from = matchstr(a:map, '\S\+')
if empty(mapcheck(from, a:mode))
- exe a:mode.'map' '<buffer>'.(a:0 ? a:1 : '') a:map
+ exe a:mode.'map' '<buffer>' a:map
let b:undo_ftplugin .= '|sil! '.a:mode.'unmap <buffer> '.from
endif
endfunction