Improve Tag support for ruby in vim

This commit is contained in:
Talia 2020-08-27 11:14:38 +02:00
parent 870afafd4f
commit 70ae947739
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,9 @@ augroup RUBY
let b:linter = "sh -c \"rubocop --auto-correct -o /dev/null --stdin % 2>/dev/null | awk 'BEGIN { header=0 } // && header==1 { print $0 } /^====================$/ { header=1 }'\"" let b:linter = "sh -c \"rubocop --auto-correct -o /dev/null --stdin % 2>/dev/null | awk 'BEGIN { header=0 } // && header==1 { print $0 } /^====================$/ { header=1 }'\""
let b:undo_ftplugin .= " | unlet b:linter" let b:undo_ftplugin .= " | unlet b:linter"
set complete=]
aut BufWritePost <buffer> Defer timeout 5 ripper-tags -R
" au InsertLeave <buffer> AsyncLint " au InsertLeave <buffer> AsyncLint
" au BufWritePre <buffer> Lint " au BufWritePre <buffer> Lint
augroup END augroup END