summaryrefslogtreecommitdiff
path: root/uvim/runtime/ftplugin/debcontrol.vim
diff options
context:
space:
mode:
authorMehmet Samet Duman <yongdohyun@projecttick.org>2026-04-03 22:21:25 +0300
committerMehmet Samet Duman <yongdohyun@projecttick.org>2026-04-04 00:23:03 +0300
commit2eae5db069dc171f74cd863487655f6a88e5384d (patch)
tree2d9d05e09978a2a44acbfbb8d651f240df3ca052 /uvim/runtime/ftplugin/debcontrol.vim
parent473d922faed49241a5d29d9e37dc4819cd512006 (diff)
downloadProject-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/debcontrol.vim')
-rw-r--r--uvim/runtime/ftplugin/debcontrol.vim73
1 files changed, 0 insertions, 73 deletions
diff --git a/uvim/runtime/ftplugin/debcontrol.vim b/uvim/runtime/ftplugin/debcontrol.vim
deleted file mode 100644
index 5b8292ba6e..0000000000
--- a/uvim/runtime/ftplugin/debcontrol.vim
+++ /dev/null
@@ -1,73 +0,0 @@
-" Vim filetype plugin file (GUI menu and folding)
-" Language: Debian control files
-" Maintainer: Debian Vim Maintainers
-" Former Maintainer: Pierre Habouzit <madcoder@debian.org>
-" Last Change: 2024 May 25
-" URL: https://salsa.debian.org/vim-team/vim-debian/blob/main/ftplugin/debcontrol.vim
-
-" Do these settings once per buffer
-if exists('b:did_ftplugin')
- finish
-endif
-let b:did_ftplugin=1
-
-" {{{1 Local settings (do on every load)
-if exists('g:debcontrol_fold_enable')
- setlocal foldmethod=expr
- setlocal foldexpr=DebControlFold(v:lnum)
- setlocal foldtext=DebControlFoldText()
-endif
-setlocal textwidth=0
-
-setlocal comments=:#
-setlocal commentstring=#\ %s
-
-" Clean unloading
-let b:undo_ftplugin = 'setlocal tw< foldmethod< foldexpr< foldtext< comments< commentstring<'
-
-" }}}1
-
-" {{{1 folding
-
-function! s:getField(f, lnum)
- let line = getline(a:lnum)
- let fwdsteps = 0
- while line !~ '^'.a:f.':'
- let fwdsteps += 1
- let line = getline(a:lnum + fwdsteps)
- if line ==# ''
- return 'unknown'
- endif
- endwhile
- return substitute(line, '^'.a:f.': *', '', '')
-endfunction
-
-function! DebControlFoldText()
- if v:folddashes ==# '-' " debcontrol entry fold
- let type = substitute(getline(v:foldstart), ':.*', '', '')
- if type ==# 'Source'
- let ftext = substitute(foldtext(), ' *Source: *', ' ', '')
- return ftext . ' -- ' . s:getField('Maintainer', v:foldstart) . ' '
- endif
- let arch = s:getField('Architecture', v:foldstart)
- let ftext = substitute(foldtext(), ' *Package: *', ' [' . arch . '] ', '')
- return ftext . ': ' . s:getField('Description', v:foldstart) . ' '
- endif
- return foldtext()
-endfunction
-
-function! DebControlFold(l)
-
- " This is for not merging blank lines around folds to them
- if getline(a:l) =~# '^Source:'
- return '>1'
- endif
-
- if getline(a:l) =~# '^Package:'
- return '>1'
- endif
-
- return '='
-endfunction
-
-" }}}1