Disabling BufReadPost.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
parent
93ebd05365
commit
df80bbbcb0
2 changed files with 27 additions and 0 deletions
26
debian/patches/progress-linux/0003-disable-BufReadPost.patch
vendored
Normal file
26
debian/patches/progress-linux/0003-disable-BufReadPost.patch
vendored
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
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
|
||||||
|
@@ -85,19 +85,6 @@ if 1
|
||||||
|
augroup vimStartup
|
||||||
|
autocmd!
|
||||||
|
|
||||||
|
- " When editing a file, always jump to the last known cursor position.
|
||||||
|
- " Don't do it when the position is invalid, when inside an event handler
|
||||||
|
- " (happens when dropping a file on gvim), for a commit or rebase message
|
||||||
|
- " (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) or when running the new tutor
|
||||||
|
- autocmd BufReadPost *
|
||||||
|
- \ let line = line("'\"")
|
||||||
|
- \ | if line >= 1 && line <= line("$") && &filetype !~# 'commit'
|
||||||
|
- \ && index(['xxd', 'gitrebase', 'tutor'], &filetype) == -1
|
||||||
|
- \ | execute "normal! g`\""
|
||||||
|
- \ | endif
|
||||||
|
-
|
||||||
|
" Set the default background for putty to dark. Putty usually sets the
|
||||||
|
" $TERM to xterm and by default it starts with a dark background which
|
||||||
|
" makes syntax highlighting often hard to read with bg=light
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
|
@ -7,3 +7,4 @@ patch-9.1.1242-Crash-when-evaluating-variable-name.patch
|
||||||
patch-9.1.1244-part-of-patch-v9.1.1242-was-wrong.patch
|
patch-9.1.1244-part-of-patch-v9.1.1242-was-wrong.patch
|
||||||
progress-linux/0001-syntax-debversions.patch
|
progress-linux/0001-syntax-debversions.patch
|
||||||
progress-linux/0002-disable-mouse.patch
|
progress-linux/0002-disable-mouse.patch
|
||||||
|
progress-linux/0003-disable-BufReadPost.patch
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue