runtime: move matchit.vim to /pack/dist/opt/

Align matchit.vim with upstream Vim. We don't want to maintain a fork of
matchit.vim; our small changes should be sent to
https://github.com/chrisbra/matchit
This commit is contained in:
Justin M. Keyes
2019-08-01 15:29:47 +02:00
parent 62b5f25b6b
commit 5342342426
5 changed files with 158 additions and 123 deletions

View File

@@ -178,12 +178,6 @@ preprocess_patch() {
# Remove vimrc_example.vim
local na_vimrcexample='vimrc_example\.vim'
2>/dev/null $nvim --cmd 'set dir=/tmp' +'g@^diff --git a/runtime/\<\%('${na_vimrcexample}'\)\>@norm! d/\v(^diff)|%$
' +w +q "$file"
# Rename src/ paths to src/nvim/
LC_ALL=C sed -e 's/\( [ab]\/src\)/\1\/nvim/g' \
"$file" > "$file".tmp && mv "$file".tmp "$file"
' +w +q "$file"
# Rename src/ paths to src/nvim/