Initial import of the vim bits from classic.

This commit is contained in:
2014-01-26 15:31:58 -05:00
parent d38552ea74
commit 64f9edf488
9 changed files with 255 additions and 0 deletions

17
vim/vimrc.functions Normal file
View File

@ -0,0 +1,17 @@
function! MyFoldText()
" This function attempts to fetch out a definition line
" for correct foldtext
let line = getline( v:foldstart )
let typeline = getline( 1 + v:foldstart )
let defline = " ".getline( 2 + v:foldstart )." {".typeline."} "
let sub = substitute( line, '/\*\|\*/\|{{{\d\=', '', 'g' )
let nm= substitute( sub, ' *\| *', '', 'g' )
if ( nm == "func" )
return v:folddashes . defline
else
return v:folddashes . sub
endif
endfunction