Commit: runtime(git): Add small ftplugin

3 views
Skip to first unread message

Christian Brabandt

unread,
Dec 28, 2023, 5:30:10 PM12/28/23
to vim...@googlegroups.com
runtime(git): Add small ftplugin

Commit: https://github.com/vim/vim/commit/48ddc6a6f86f1f42bdb49d308d72c15b0e90ce5a
Author: Tim Pope <co...@tpope.net>
Date: Thu Dec 28 12:46:39 2023 -0500

runtime(git): Add small ftplugin

diff --git a/runtime/ftplugin/git.vim b/runtime/ftplugin/git.vim
new file mode 100644
index 000000000..7fcce5305
--- /dev/null
+++ b/runtime/ftplugin/git.vim
@@ -0,0 +1,15 @@
+" Vim filetype plugin
+" Language: generic git output
+" Maintainer: Tim Pope <vimN...@tpope.org>
+" Last Change: 2023 Mar 26
+
+" Only do this when not done yet for this buffer
+if (exists("b:did_ftplugin"))
+ finish
+endif
+
+let b:did_ftplugin = 1
+
+setlocal nomodeline
+
+let b:undo_ftplugin = "setl modeline<"
Reply all
Reply to author
Forward
0 new messages