Skip to content

Commit

Permalink
Ignore modelines in diffs in commit messages
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Aug 29, 2011
1 parent ca001e5 commit 291cbe9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ftplugin/gitcommit.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ endif
runtime! ftplugin/git.vim
let b:did_ftplugin = 1

set nomodeline

let b:undo_ftplugin = 'setl modeline<'

if &textwidth == 0
" make sure that log messages play nice with git-log on standard terminals
setlocal textwidth=72
if !exists("b:undo_ftplugin")
let b:undo_ftplugin = ""
endif
let b:undo_ftplugin = b:undo_ftplugin . "|setl tw<"
let b:undo_ftplugin .= "|setl tw<"
endif

if exists("g:no_gitcommit_commands") || v:version < 700
Expand Down

0 comments on commit 291cbe9

Please sign in to comment.