Mercurial > vim
comparison runtime/ftplugin/gitcommit.vim @ 4681:2eb30f341e8d
Updated runtime files and translations.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 01 Jun 2013 14:50:56 +0200 |
parents | 161d01cbb165 |
children | 43efa4f5a8ea |
comparison
equal
deleted
inserted
replaced
4680:fd8cc7fbc273 | 4681:2eb30f341e8d |
---|---|
1 " Vim filetype plugin | 1 " Vim filetype plugin |
2 " Language: git commit file | 2 " Language: git commit file |
3 " Maintainer: Tim Pope <vimNOSPAM@tpope.org> | 3 " Maintainer: Tim Pope <vimNOSPAM@tpope.org> |
4 " Last Change: 2012 April 7 | 4 " Last Change: 2013 May 30 |
5 | 5 |
6 " Only do this when not done yet for this buffer | 6 " Only do this when not done yet for this buffer |
7 if (exists("b:did_ftplugin")) | 7 if (exists("b:did_ftplugin")) |
8 finish | 8 finish |
9 endif | 9 endif |
10 | 10 |
11 runtime! ftplugin/git.vim | 11 runtime! ftplugin/git.vim |
12 let b:did_ftplugin = 1 | 12 let b:did_ftplugin = 1 |
13 | 13 |
14 setlocal nomodeline | 14 setlocal nomodeline tabstop=8 formatoptions-=croq formatoptions+=tl |
15 | 15 |
16 let b:undo_ftplugin = 'setl modeline<' | 16 let b:undo_ftplugin = 'setl modeline< tabstop< formatoptions<' |
17 | 17 |
18 if &textwidth == 0 | 18 if &textwidth == 0 |
19 " make sure that log messages play nice with git-log on standard terminals | 19 " make sure that log messages play nice with git-log on standard terminals |
20 setlocal textwidth=72 | 20 setlocal textwidth=72 |
21 let b:undo_ftplugin .= "|setl tw<" | 21 let b:undo_ftplugin .= "|setl tw<" |