Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
diff.vim30 linesDownload Raw Back to ftplugin
1" Vim filetype plugin file2" Language:	Diff3" Maintainer:	The Vim Project <https://github.com/vim/vim>4" Last Change:	2023 Aug 225" Former Maintainer:	Bram Moolenaar <Bram@vim.org>6 7" Only do this when not done yet for this buffer8if exists("b:did_ftplugin")9  finish10endif11let b:did_ftplugin = 112 13let b:undo_ftplugin = "setl modeline< commentstring<"14 15" Don't use modelines in a diff, they apply to the diffed file16setlocal nomodeline17 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  else26    let b:browsefilter ..= "All Files (*)\t*\n"27  endif28  let b:undo_ftplugin ..= " | unlet! b:browsefilter"29endif30 
codekingpro/portable-devtools · Team Ai