summaryrefslogtreecommitdiffstats
path: root/vim/ftplugin/ruby.vim
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2023-10-08 12:09:20 -0400
committerJesse Luehrs <doy@tozt.net>2023-10-08 12:59:10 -0400
commit49570c8dd03448240897b37b68567352b790f16f (patch)
tree6c192a52046d5d0dd1b84a838befd8e777cfeafb /vim/ftplugin/ruby.vim
parent66939c71da756c1d9e07a88a4a8ea2a018650060 (diff)
downloadconf-49570c8dd03448240897b37b68567352b790f16f.tar.gz
conf-49570c8dd03448240897b37b68567352b790f16f.zip
convert to stow
Diffstat (limited to 'vim/ftplugin/ruby.vim')
-rw-r--r--vim/ftplugin/ruby.vim25
1 files changed, 0 insertions, 25 deletions
diff --git a/vim/ftplugin/ruby.vim b/vim/ftplugin/ruby.vim
deleted file mode 100644
index 035f432..0000000
--- a/vim/ftplugin/ruby.vim
+++ /dev/null
@@ -1,25 +0,0 @@
-function! s:rubocop_in_bundler()
- let l:gemfiles = glob("*.gemspec", 1, 1)
- if filereadable("Gemfile")
- let l:gemfiles += ["Gemfile"]
- endif
- for l:file in l:gemfiles
- for l:line in readfile(l:file)
- if l:line =~ 'gem.*rubocop'
- return 1
- endif
- endfor
- endfor
- return 0
-endfunction
-if s:rubocop_in_bundler()
- let b:ale_ruby_rubocop_executable = 'bundle'
-endif
-
-" look up words in ri rather than man for K
-function! s:ri(word)
- exe 'silent read! ri -T -f rdoc "' . a:word . '" 2>/dev/null'
- setlocal ft=
-endfunction
-nnoremap <buffer> <silent>K :call Help(0, [':', '.'], '<SID>ri')<CR>
-vnoremap <buffer> <silent>K :call Help(1, [':', '.'], '<SID>ri')<CR>