Mercurial > vim
view runtime/compiler/ruby.vim @ 32947:306f51627f50 v9.0.1774
commit 92997dda789ad8061841128cbc99b15ec0374411
Author: Shougo Matsushita <Shougo.Matsu@gmail.com>
Date: Sun Aug 20 20:55:55 2023 +0200
patch 9.0.1774: no support for custom cmdline completion
Problem: no support for custom cmdline completion
Solution: Add new vimscript functions
Add the following two functions:
- getcmdcompltype() returns custom and customlist functions
- getcompletion() supports both custom and customlist
closes: #12228
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 20 Aug 2023 22:11:05 +0200 |
parents | f0f06837a699 |
children | e1df51f68736 |
line wrap: on
line source
" Vim compiler file " Language: Ruby " Function: Syntax check and/or error reporting " Maintainer: Tim Pope <vimNOSPAM@tpope.org> " URL: https://github.com/vim-ruby/vim-ruby " Release Coordinator: Doug Kearns <dougkearns@gmail.com> " Last Change: 2019 Jan 06 if exists("current_compiler") finish endif let current_compiler = "ruby" if exists(":CompilerSet") != 2 " older Vim always used :setlocal command -nargs=* CompilerSet setlocal <args> endif let s:cpo_save = &cpo set cpo-=C " default settings runs script normally " add '-c' switch to run syntax check only: " " CompilerSet makeprg=ruby\ -c " " or add '-c' at :make command line: " " :make -c %<CR> " CompilerSet makeprg=ruby CompilerSet errorformat= \%+E%f:%l:\ parse\ error, \%W%f:%l:\ warning:\ %m, \%E%f:%l:in\ %*[^:]:\ %m, \%E%f:%l:\ %m, \%-C%\t%\\d%#:%#\ %#from\ %f:%l:in\ %.%#, \%-Z%\t%\\d%#:%#\ %#from\ %f:%l, \%-Z%p^, \%-G%.%# let &cpo = s:cpo_save unlet s:cpo_save " vim: nowrap sw=2 sts=2 ts=8: