robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
7ed6966023
master
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" ) 9finish 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" ) 22let b: browsefilter = "Diff Files (*.diff)\t*.diff\nPatch Files (*.patch)\t*.h\n" 23if has ( "win32" ) 24let b: browsefilter ..= "All Files (*.*)\t*\n" 25else 26let b: browsefilter ..= "All Files (*)\t*\n" 27endif 28let b: undo_ftplugin ..= " | unlet! b:browsefilter" 29endif