diff options
author | Urbain Vaes <urbain@vaes.uk> | 2015-06-25 11:35:07 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2015-06-25 11:35:07 +0100 |
commit | e2d48b806e0e9719abbee2efff2d1af739979b94 (patch) | |
tree | e1748568e55c500c69d7c199bdfa06aee7fbd86c /nvim/after/ftplugin/vim/folding.vim | |
parent | 2ba9604d198fca427c26cba3e82a1b256c633543 (diff) |
Merge vim and neovim configs
Diffstat (limited to 'nvim/after/ftplugin/vim/folding.vim')
-rw-r--r-- | nvim/after/ftplugin/vim/folding.vim | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/nvim/after/ftplugin/vim/folding.vim b/nvim/after/ftplugin/vim/folding.vim deleted file mode 100644 index 1454cbe..0000000 --- a/nvim/after/ftplugin/vim/folding.vim +++ /dev/null @@ -1,25 +0,0 @@ -function! VimFolds() - let thisline = getline(v:lnum) - if match(thisline,'^"" ') >= 0 - return ">1" - elseif match(thisline,'^" ') >=0 - return ">1" - else - return "=" - endif -endfunction - -function! VimFoldText() - let startline = getline(v:foldstart) - if match(startline,'^"" ') >= 0 - let title = substitute(startline,'^"" \(.*\)$','\1',"") - return '# ' . title - elseif match(startline,'^" ') >=0 - let title = substitute(startline,'^" \(.*\)$','\1',"") - return ' ## ' .title - endif -endfunction - -setlocal foldmethod=expr -setlocal foldexpr=VimFolds() -setlocal foldtext=VimFoldText() |