Mercurial > vim
annotate runtime/compiler/ruby.vim @ 36533:90545c76016e draft default tip
runtime(tar): Update tar.vim to support permissions
Commit: https://github.com/vim/vim/commit/129a8446d23cd9cb4445fcfea259cba5e0487d29
Author: Lennart00 <73488709+Lennart00@users.noreply.github.com>
Date: Mon Nov 11 22:39:30 2024 +0100
runtime(tar): Update tar.vim to support permissions
These changes enable tar.vim to keep permissions of files that were
edited intact instead of replacing them with the default permissions.
The major change for this is switching from "tar -OPxf", which reads out
the contents of the selected file from an tar archive to stdout to
"tar -pPxf" which extracts the selected file to the current directory
with permissions intact
This requirs the temporary directory to be created earlier.
closes: #7379
Signed-off-by: Lennart00 <73488709+Lennart00@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 11 Nov 2024 22:45:02 +0100 |
parents | e1df51f68736 |
children |
rev | line source |
---|---|
7 | 1 " Vim compiler file |
831 | 2 " Language: Ruby |
3 " Function: Syntax check and/or error reporting | |
4869 | 4 " Maintainer: Tim Pope <vimNOSPAM@tpope.org> |
5 " URL: https://github.com/vim-ruby/vim-ruby | |
831 | 6 " Release Coordinator: Doug Kearns <dougkearns@gmail.com> |
15512 | 7 " Last Change: 2019 Jan 06 |
34778
e1df51f68736
runtime: Remove fallback :CompilerSet definition from compiler plugins
Christian Brabandt <cb@256bit.org>
parents:
15512
diff
changeset
|
8 " 2024 Apr 03 by The Vim Project (removed :CompilerSet definition) |
7 | 9 |
10 if exists("current_compiler") | |
11 finish | |
12 endif | |
13 let current_compiler = "ruby" | |
14 | |
15 let s:cpo_save = &cpo | |
16 set cpo-=C | |
17 | |
18 " default settings runs script normally | |
19 " add '-c' switch to run syntax check only: | |
20 " | |
15512 | 21 " CompilerSet makeprg=ruby\ -c |
7 | 22 " |
23 " or add '-c' at :make command line: | |
24 " | |
25 " :make -c %<CR> | |
26 " | |
15512 | 27 CompilerSet makeprg=ruby |
7 | 28 |
29 CompilerSet errorformat= | |
30 \%+E%f:%l:\ parse\ error, | |
31 \%W%f:%l:\ warning:\ %m, | |
32 \%E%f:%l:in\ %*[^:]:\ %m, | |
33 \%E%f:%l:\ %m, | |
15512 | 34 \%-C%\t%\\d%#:%#\ %#from\ %f:%l:in\ %.%#, |
35 \%-Z%\t%\\d%#:%#\ %#from\ %f:%l, | |
7 | 36 \%-Z%p^, |
37 \%-G%.%# | |
38 | |
39 let &cpo = s:cpo_save | |
40 unlet s:cpo_save | |
41 | |
1620 | 42 " vim: nowrap sw=2 sts=2 ts=8: |