Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

General: Remove all fold markers. #431

Merged
merged 2 commits into from
Nov 11, 2016
Merged

General: Remove all fold markers. #431

merged 2 commits into from
Nov 11, 2016

Conversation

dylanaraps
Copy link
Owner

@dylanaraps dylanaraps commented Nov 11, 2016

Description

This PR removes all vim fold marker comments that littered neofetch and stops enforcing a fold method for people editing the file.

Instead I recommend using bash syntax folding with the following settings in your .vimrc:

filetype plugin indent on
augroup Bashfold
    au!
    autocmd Filetype sh let g:sh_fold_enabled=3
    autocmd Filetype sh let g:is_bash=1
    autocmd Filetype sh setlocal foldmethod=syntax
augroup END
syntax on

autocmd Filetype sh let g:sh_fold_enabled=3

The 3 will set vim to only fold functions. Raising this number will make vim fold if statements and etc.

@dylanaraps dylanaraps merged commit 09d2ff8 into master Nov 11, 2016
@dylanaraps dylanaraps deleted the syntaxfold branch November 11, 2016 04:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant