summaryrefslogtreecommitdiff
path: root/vim/.vim/after/ftplugin/freefem/folding.vim
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2016-05-05 21:21:08 +0100
committerUrbain Vaes <urbain@vaes.uk>2016-05-05 21:25:21 +0100
commitb7a1cc6424ee412282e5c6c631ca30097a0a3cd3 (patch)
tree026ea5491d4e54301baa8cf13aadaf2338b4b6c0 /vim/.vim/after/ftplugin/freefem/folding.vim
parentb6983b02553a5f8e71fe2810a4b35ec2436a376e (diff)
Clean up vim/after
Diffstat (limited to 'vim/.vim/after/ftplugin/freefem/folding.vim')
-rw-r--r--vim/.vim/after/ftplugin/freefem/folding.vim20
1 files changed, 0 insertions, 20 deletions
diff --git a/vim/.vim/after/ftplugin/freefem/folding.vim b/vim/.vim/after/ftplugin/freefem/folding.vim
deleted file mode 100644
index 7d2f6fd..0000000
--- a/vim/.vim/after/ftplugin/freefem/folding.vim
+++ /dev/null
@@ -1,20 +0,0 @@
-function! FreeFemFolds()
- let thisline = getline(v:lnum)
- if match(thisline,'^/// ') >= 0
- return ">1"
- else
- return "="
- endif
-endfunction
-
-function! FreeFemFoldText()
- let startline = getline(v:foldstart)
- if match(startline,'^/// ') >= 0
- let title = substitute(startline,'^/// \(.*\)$','\1',"")
- return '# ' . title
- endif
-endfunction
-
-setlocal foldmethod=expr
-setlocal foldexpr=FreeFemFolds()
-setlocal foldtext=FreeFemFoldText()