Skip to content

Instantly share code, notes, and snippets.

@mstrehler
Created February 4, 2016 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mstrehler/f80888e824c44572240f to your computer and use it in GitHub Desktop.
Save mstrehler/f80888e824c44572240f to your computer and use it in GitHub Desktop.
Marker-Folding für vim (Beispiel für ein bib-File)
% Beispiel für Marker-Folding (hier ein BibTex-File *.bib)
% Die Datei enthält Ende eine Modline, die die foldmethod setzt
% (=marker). Die gefoldeten Anteile müssen in dreifache geschweifte Klammern
% gesetzt werden {{{ }}}. Auskommentierungen werden ignoriert.
% Vim-Befehle: Mit zo wird der Fold geöffnet, mit zc geschlossen.
% zM schliesst alle Folds, egal
% wo der Cursor sich befindet, zR öffnet alle.
% String-Definitionen {{{
@STRING(TO = "Tour")
@STRING(RB = "{R}oad{B}ike")
@STRING(GCN = "{Global Cycling Network}")
% }}}
% {{{ YouTube-Videos
@misc{gcn2011winter,
author = GCN,
title = {{Top 10 Tips For Cycling In Winter - Matt Stephens' Pro Tips For Winter Riding}},
type = video,
year = 2011,
month = {\APACmonth{11}},
day = {14},
url = {https://youtu.be/097kJPd-0q8},
lastchecked = {10.12.2015},
otherinfo = {bidon repar kit, warm toes (tin foil), spare layers, stand-by light,
two tubes, tyre selection, fuel, clean your bike, keep warm (keep moving),
protect your smartphone},
}
% }}}
% Blog-Einträge {{{
% }}}
% Artikel {{{
% }}}
% Webseiten {{{
% }}}
% Modline
% vim:foldmethod=marker:foldlevel=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment