💾 Archived View for republic.circumlunar.space › users › johngodlee › posts › 2019-07-31-bibtex-fold… captured on 2023-03-20 at 19:00:34. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-12-04)
-=-=-=-=-=-=-
DATE: 2019-07-31
AUTHOR: John L. Godlee
I wanted to be able to fold long BibTeX files to display a condensed list of the references so I could quickly scan the contents of the file. To do this, I created a function in my .vimrc which folds .bib files on the @ symbol which prepends each reference entry in the file. THis is the excerpt from my .vimrc:
" Set folding function for bibtex entries function! BibTeXFold() if getline(v:lnum) =~ '^@.*