Fixed vim and zsh

This commit is contained in:
2018-04-05 13:06:54 +02:00
parent f9db886bd3
commit 0331f6518a
2009 changed files with 256303 additions and 0 deletions

View File

@ -0,0 +1,57 @@
Snipmate.vim support for BibTeX files
=====================================
This plugin provides some snippets
for writing BibTeX (``.bib``) files.
The supported entry types are:
``Article``,
``Book``,
``Booklet``,
``Conference``,
``InBook``,
``InCollection``,
``InProceedings``,
``Manual``,
``MastersThesis``,
``Misc``,
``PhDThesis``,
``Proceedings``,
``TechReport`` and
``Unpublished``.
The trigger words are these names converted to lower case.
Most of the optional fields (such as ``annote`` and ``eprint``) are not included.
I tested this plugin against `garbas's Snipmate fork`_.
If it doesn't work with your own configuration, please let me know.
.. _garbas's Snipmate fork: https://github.com/garbas/vim-snipmate
Dependencies
------------
* Vim (of course)
* Snipmate_.
Installation
------------
This addon is compatible with Pathogen_ and Vundle_.
If you use one of them,
you are awesome so you'll know what to do.
I pretend to support installation with VAM_ as well,
but I haven't tried it.
If you are an old-fashioned Vimmer,
just drop the bib.snippets_ file
into the ``snippets`` directory
of your Snipmate install.
.. _Snipmate: https://github.com/garbas/vim-snipmate
.. _Pathogen: https://github.com/tpope/vim-pathogen
.. _VAM: https://github.com/MarcWeber/vim-addon-manager
.. _bib.snippets: https://github.com/rbonvall/snipmate-snippets-bib/blob/master/snippets/bib.snippets
Author
------
Roberto Bonvallet <rbonvall@gmail.com>

View File

@ -0,0 +1,15 @@
{
"name" : "snipmate-snippets-bib",
"author" : "Roberto Bonvallet <rbonvall@gmail.com>",
"repository" : {
"type": "git",
"url": "git://github.com/rbonvall/snipmate-snippets-bib.git"
},
"dependencies" : {
"snipmate": {
"type": "git",
"url": "https://github.com/garbas/vim-snipmate.git"
}
},
"description" : "Snipmate.vim support for BibTeX files."
}

View File

@ -0,0 +1,93 @@
# Based on http://pts.szit.bme.hu/bibtex-cheat-sheet.txt
# Most optional fields are not included.
snippet article
@Article{ ${1:id},
author = {${2:authors separated by "and"}},
title = {${3:title}},
journal = {${4:journal}},
year = ${5:year},
}
snippet book
@Book{ ${1:id},
${2:author/editor} = {${3:$2s separated by "and"}},
title = {${4:title}},
publisher = {${5:publisher}},
year = ${6:year},
}
snippet booklet
@Booklet{ ${1:id},
title = {${2:title}},
author = {${3:authors separated by "and"}},
}
snippet conference
@Conference{ ${1:id},
author = {${2:authors separated by "and"}},
title = {${3:title}},
booktitle = {${4:book title}},
year = ${5:year},
}
snippet inbook
@InBook{ ${1:id},
${2:author/editor} = {${3:$2s separated by "and"}},
title = {${4:title}},
${5:chapter/pages} = {${6:$5}},
publisher = {${7:publisher}},
year = ${8:year},
}
snippet incollection
@InCollection{ ${1:id},
author = {${2:authors separated by "and"}},
title = {${3:title}},
booktitle = {${4:book title}},
year = ${5:year},
}
snippet inproceedings
@InProceedings{ ${1:id},
author = {${2:authors separated by "and"}},
title = {${3:title}},
booktitle = {${4:book title}},
year = ${5:year},
}
snippet manual
@Manual{ ${1:id},
title = {${2:title}},
author = {${3:authors separated by "and"}},
}
snippet masters
@MastersThesis{ ${1:id},
author = {${2:authors separated by "and"}},
title = {${3:title}},
school = {${4:school}},
year = ${5:year},
}
snippet misc
@Misc{ ${1:id},
author = {${2:authors separated by "and"}},
title = {${3:title}},
}
snippet phd
@PhDThesis{ ${1:id},
author = {${2:authors separated by "and"}},
title = {${3:title}},
school = {${4:school}},
year = ${5:year},
}
snippet proceedings
@Proceedings{ ${1:id},
title = {${2:title}},
year = {${3:year}},
}
snippet techreport
@TechReport{ ${1:id},
author = {${2:authors separated by "and"}},
title = {${3:title}},
institution = {${4:institution}},
year = ${5:year},
}
snippet unpublished
@Unpublished{ ${1:id},
author = {${2:authors separated by "and"}},
title = {${3:title}},
note = {${4:note}},
}