Skip to content

Instantly share code, notes, and snippets.

@kana
Created February 4, 2012 08:09
Show Gist options
  • Save kana/1736318 to your computer and use it in GitHub Desktop.
Save kana/1736318 to your computer and use it in GitHub Desktop.
ハイパー @luxion 'foldtext' #vim
autocmd FileType cpp setlocal foldtext=MyFoldTextForCpp()
function! MyFoldTextForCpp()
return substitute(getline(v:foldstart + 1), '^\s*', '/* ', '')
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment