summaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-05-05 10:11:22 +0100
committerUrbain Vaes <urbain@vaes.uk>2015-05-05 10:11:22 +0100
commit4bc51e7b9de161d88499809fdbfde9b1f14f0574 (patch)
treeb5cad37b3ce552254c58deed21f475979b95b2b3 /vim
parentde0abc242b09222489ed667a9becdb42a7a602fd (diff)
parentb512cd2427ce23bcd36c8b0bbdc9fcb6f6047e93 (diff)
Merge branch 'master' of github.com:uvaes/dotfiles
Conflicts: vimrc
Diffstat (limited to 'vim')
-rw-r--r--vim/after/ftplugin/vim/folding.vim50
l---------vim/vim1
2 files changed, 26 insertions, 25 deletions
diff --git a/vim/after/ftplugin/vim/folding.vim b/vim/after/ftplugin/vim/folding.vim
index 7f8f28d..1454cbe 100644
--- a/vim/after/ftplugin/vim/folding.vim
+++ b/vim/after/ftplugin/vim/folding.vim
@@ -1,25 +1,25 @@
-" 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()
+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()
diff --git a/vim/vim b/vim/vim
new file mode 120000
index 0000000..7c09735
--- /dev/null
+++ b/vim/vim
@@ -0,0 +1 @@
+/home/urbain/dotfiles/vim \ No newline at end of file