robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Christian Clasonvim-patch:93197fde0f1d7ed6966023

master
852 B29 linesraw
1" Vim filetype plugin file
2" Language:	Diff
3" Maintainer:	The Vim Project <https://github.com/vim/vim>
4" Last Change:	2023 Aug 22
5" Former Maintainer:	Bram Moolenaar <Bram@vim.org>
6
7" Only do this when not done yet for this buffer
8if exists("b:did_ftplugin")
9  finish
10endif
11let b:did_ftplugin = 1
12
13let b:undo_ftplugin = "setl modeline< commentstring<"
14
15" Don't use modelines in a diff, they apply to the diffed file
16setlocal nomodeline
17
18" If there are comments they start with #
19let &l:commentstring = "# %s"
20
21if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
22  let b:browsefilter = "Diff Files (*.diff)\t*.diff\nPatch Files (*.patch)\t*.h\n"
23  if has("win32")
24    let b:browsefilter ..= "All Files (*.*)\t*\n"
25  else
26    let b:browsefilter ..= "All Files (*)\t*\n"
27  endif
28  let b:undo_ftplugin ..= " | unlet! b:browsefilter"
29endif