Skip to content

A vim package to interact with papis

License

Notifications You must be signed in to change notification settings

prataffel/papis-vim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The papis-vim package

This package provides Vim support for Papis a command-line based bibliography manager.

Install

This package depends on fzf.vim.

If you want to use the (experimental) :PapisCreateBibliography command, you need to install the papis custom script papis-format, that is provided in the papis_assets/ directory. Copy all of the folders contents next to your papis config file, e.g. to $XDG_CONFIG_HOME/papis when using a Linux machine.

Using Vundle

Add these lines to the .vimrc:

Plugin 'junegunn/fzf'
Plugin '[email protected]:papis/papis-vim.git'

Usage

The :Papis command will open a search window for your bibliographic database. Enter command will insert citation for the selected record in the current buffer.

The :PapisView command will open the pdf file of the citation currently under your cursor with the same pdf-reader used by papis. This currently only works when using whoosh as backend for the papis database. Add the following to your config file of papis:

database-backend = whoosh
whoosh-schema-fields = ['ref']

The second is needed to enable whoosh for searches through the ref field.

Add the following to your tex.vim file for useful keyboard shortcuts:

nnoremap <buffer> <localleader>pc :Papis<cr>
nnoremap <buffer> <localleader>pv :PapisView<cr>

Documentation

For more information, execute :help papis in Vim.

About

A vim package to interact with papis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 61.8%
  • Python 38.2%