summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:18:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:18:20 +0000
commitbbfe2176ee4038e557685d784a1ed5e27806d3c7 (patch)
tree5630d9610e81c418b935186bf160bfda42d2372d /debian
parentDisabling mouse. (diff)
downloadvim-bbfe2176ee4038e557685d784a1ed5e27806d3c7.tar.xz
vim-bbfe2176ee4038e557685d784a1ed5e27806d3c7.zip
Disabling BufReadPost.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian')
-rw-r--r--debian/patches/progress-linux/0003-disable-BufReadPost.patch25
-rw-r--r--debian/patches/series1
2 files changed, 26 insertions, 0 deletions
diff --git a/debian/patches/progress-linux/0003-disable-BufReadPost.patch b/debian/patches/progress-linux/0003-disable-BufReadPost.patch
new file mode 100644
index 0000000..c783e6a
--- /dev/null
+++ b/debian/patches/progress-linux/0003-disable-BufReadPost.patch
@@ -0,0 +1,25 @@
+Author: Daniel Baumann <daniel.baumann@progress-linux.org>
+Description: Disabling BufReadPost.
+
+diff -Naurp vim.orig/runtime/defaults.vim vim/runtime/defaults.vim
+--- vim.orig/runtime/defaults.vim
++++ vim/runtime/defaults.vim
+@@ -108,12 +108,12 @@ if 1
+ " (likely a different one than last time), and when using xxd(1) to filter
+ " and edit binary files (it transforms input files back and forth, causing
+ " them to have dual nature, so to speak)
+- autocmd BufReadPost *
+- \ let line = line("'\"")
+- \ | if line >= 1 && line <= line("$") && &filetype !~# 'commit'
+- \ && index(['xxd', 'gitrebase'], &filetype) == -1
+- \ | execute "normal! g`\""
+- \ | endif
++ "autocmd BufReadPost *
++ " \ let line = line("'\"")
++ " \ | if line >= 1 && line <= line("$") && &filetype !~# 'commit'
++ " \ && index(['xxd', 'gitrebase'], &filetype) == -1
++ " \ | execute "normal! g`\""
++ " \ | endif
+
+ augroup END
+
diff --git a/debian/patches/series b/debian/patches/series
index 3359705..dadfd69 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ debian/Add-recognition-of-more-LaTeX-commands-for-tex-filetype-d.patch
debian/Document-Debian-s-decision-to-disable-modelines-by-defaul.patch
progress-linux/0001-syntax-debversions.patch
progress-linux/0002-disable-mouse.patch
+progress-linux/0003-disable-BufReadPost.patch