From cd594f0c9f0ea5fbaf62f0a2af71feb4df6baba2 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Sat, 26 Dec 2020 00:52:46 +0100 Subject: [PATCH] vim: get rid of silly custom folding --- roles/dotfiles/files/vimrc | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/roles/dotfiles/files/vimrc b/roles/dotfiles/files/vimrc index a1ebb1d..2487a5b 100644 --- a/roles/dotfiles/files/vimrc +++ b/roles/dotfiles/files/vimrc @@ -81,7 +81,6 @@ set writebackup " make a backup before overwriting a file " Overrides when UTF-8 is available if has('multi_byte') && &encoding ==# 'utf-8' -set foldtext=VimrcFoldText() set fillchars=vert:┃,fold:· set showbreak=⤷ " prefix for wrapped lines set listchars=tab:▷\ ,extends:»,precedes:«,trail:· " invisible chars @@ -164,21 +163,6 @@ function! VimrcCycleNumbers() abort endif endfunction -" Turn fold text from this: -" -" +--- 2 lines: text of first line in fold -------------------------- -" -" into this: -" -" ··· 2ℓ: text of first line in fold ······························ -function! VimrcFoldText() abort - let l:level=substitute(v:folddashes, '-', '·', 'g') - let l:count=(v:foldend - v:foldstart + 1) - let l:title=substitute(getline(v:foldstart), '\v *', '', '') - return l:level . ' ' . l:count . 'ℓ: ' . l:title . ' ' -endfunction -" }}}" - " Mappings {{{ let mapleader = "\" let maplocalleader = ","