comparison runtime/ftplugin/gitrebase.vim @ 10048:43efa4f5a8ea

commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 30 23:26:57 2016 +0200 Updated runtime files. Remove version checks for Vim older than 6.0.
author Christian Brabandt <cb@256bit.org>
date Tue, 30 Aug 2016 23:30:09 +0200
parents f7579a31705c
children 5c40013d45ee
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
1 " Vim filetype plugin 1 " Vim filetype plugin
2 " Language: git rebase --interactive 2 " Language: git rebase --interactive
3 " Maintainer: Tim Pope <vimNOSPAM@tpope.org> 3 " Maintainer: Tim Pope <vimNOSPAM@tpope.org>
4 " Last Change: 2010 May 21 4 " Last Change: 2016 Aug 29
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 comments=:# commentstring=#\ %s formatoptions-=t 14 setlocal comments=:# commentstring=#\ %s formatoptions-=t
15 setlocal nomodeline
15 if !exists("b:undo_ftplugin") 16 if !exists("b:undo_ftplugin")
16 let b:undo_ftplugin = "" 17 let b:undo_ftplugin = ""
17 endif 18 endif
18 let b:undo_ftplugin = b:undo_ftplugin."|setl com< cms< fo<" 19 let b:undo_ftplugin = b:undo_ftplugin."|setl com< cms< fo< ml<"
19 20
20 function! s:choose(word) 21 function! s:choose(word)
21 s/^\(\w\+\>\)\=\(\s*\)\ze\x\{4,40\}\>/\=(strlen(submatch(1)) == 1 ? a:word[0] : a:word) . substitute(submatch(2),'^$',' ','')/e 22 s/^\(\w\+\>\)\=\(\s*\)\ze\x\{4,40\}\>/\=(strlen(submatch(1)) == 1 ? a:word[0] : a:word) . substitute(submatch(2),'^$',' ','')/e
22 endfunction 23 endfunction
23 24