diff options
| author | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-03 22:21:25 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-04 00:23:03 +0300 |
| commit | 2eae5db069dc171f74cd863487655f6a88e5384d (patch) | |
| tree | 2d9d05e09978a2a44acbfbb8d651f240df3ca052 /uvim/runtime/ftplugin/gitrebase.vim | |
| parent | 473d922faed49241a5d29d9e37dc4819cd512006 (diff) | |
| download | Project-Tick-2eae5db069dc171f74cd863487655f6a88e5384d.tar.gz Project-Tick-2eae5db069dc171f74cd863487655f6a88e5384d.zip | |
NOISSUE rebrand vim to MNV's not Vim
Signed-off-by: Mehmet Samet Duman <yongdohyun@projecttick.org>
Diffstat (limited to 'uvim/runtime/ftplugin/gitrebase.vim')
| -rw-r--r-- | uvim/runtime/ftplugin/gitrebase.vim | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/uvim/runtime/ftplugin/gitrebase.vim b/uvim/runtime/ftplugin/gitrebase.vim deleted file mode 100644 index 143f86a251..0000000000 --- a/uvim/runtime/ftplugin/gitrebase.vim +++ /dev/null @@ -1,45 +0,0 @@ -" Vim filetype plugin -" Language: git rebase --interactive -" Maintainer: Tim Pope <vimNOSPAM@tpope.org> -" Last Change: 2022 Jan 05 - -" Only do this when not done yet for this buffer -if (exists("b:did_ftplugin")) - finish -endif - -let b:did_ftplugin = 1 - -let &l:comments = ':' . (matchstr(getline('$'), '^[#;@!$%^&|:]\S\@!') . '#')[0] -let &l:commentstring = &l:comments[1] . ' %s' -setlocal formatoptions-=t -setlocal nomodeline -let b:undo_ftplugin = "setl com< cms< fo< ml<" - -function! s:choose(word) abort - s/^\(\w\+\>\)\=\(\s*\)\ze\x\{4,40\}\>/\=(strlen(submatch(1)) == 1 ? a:word[0] : a:word) . substitute(submatch(2),'^$',' ','')/e -endfunction - -function! s:cycle(count) abort - let words = ['pick', 'edit', 'fixup', 'squash', 'reword', 'drop'] - let index = index(map(copy(words), 'v:val[0]'), getline('.')[0]) - let index = ((index < 0 ? 0 : index) + 10000 * len(words) + a:count) % len(words) - call s:choose(words[index]) -endfunction - -command! -buffer -bar -range Pick :<line1>,<line2>call s:choose('pick') -command! -buffer -bar -range Squash :<line1>,<line2>call s:choose('squash') -command! -buffer -bar -range Edit :<line1>,<line2>call s:choose('edit') -command! -buffer -bar -range Reword :<line1>,<line2>call s:choose('reword') -command! -buffer -bar -range Fixup :<line1>,<line2>call s:choose('fixup') -command! -buffer -bar -range Drop :<line1>,<line2>call s:choose('drop') -command! -buffer -count=1 -bar -bang Cycle call s:cycle(<bang>0 ? -<count> : <count>) - -if exists("g:no_plugin_maps") || exists("g:no_gitrebase_maps") - finish -endif - -nnoremap <buffer> <silent> <C-A> :<C-U><C-R>=v:count1<CR>Cycle<CR> -nnoremap <buffer> <silent> <C-X> :<C-U><C-R>=v:count1<CR>Cycle!<CR> - -let b:undo_ftplugin = b:undo_ftplugin . "|exe 'nunmap <buffer> <C-A>'|exe 'nunmap <buffer> <C-X>'" |
