vim foldmethod moved to after/ftplugin

This commit is contained in:
ManjaroOne666 2018-12-03 23:44:36 +00:00
parent dc0c2bafd7
commit 1ba1a3851a
1 changed files with 2 additions and 5 deletions

5
vimrc
View File

@ -645,6 +645,7 @@ function! MyFoldText() "{{{
" it as an actual fold marker " it as an actual fold marker
let l:line = substitute(getline(v:foldstart), '"\?{\({\){', '', '') let l:line = substitute(getline(v:foldstart), '"\?{\({\){', '', '')
" don't display vim comment quotation marks " don't display vim comment quotation marks
" TODO other comment markers
let l:line = substitute(l:line, "\^\"\\s\\?", '', '') let l:line = substitute(l:line, "\^\"\\s\\?", '', '')
" let l:postfix = l:linecount . ' ' . substitute(v:folddashes, '-', '•', 'g') " let l:postfix = l:linecount . ' ' . substitute(v:folddashes, '-', '•', 'g')
@ -1034,11 +1035,7 @@ set laststatus=2
set shortmess=aoOT set shortmess=aoOT
set cmdheight=3 set cmdheight=3
if &filetype ==? 'vim'
set foldmethod=marker
else
set foldmethod=manual set foldmethod=manual
endif
set showmode set showmode