Files
requirements.txt.vim/README.md
2016-01-19 00:38:14 +09:00

1.9 KiB

requirements.txt.vim

Build Status Dependency Status MIT License

the Requirements File Format syntax support for Vim.

requirements txt-sc

Installation

e.g.) NeoBundle, Vundle, vim-plug and more

" NeoBundle
NeoBundle 'raimon49/requirements.txt.vim'

" Vundle
Plugin 'raimon49/requirements.txt.vim'

" vim-plug
Plug 'raimon49/requirements.txt.vim'

Pathogen (https://github.com/tpope/vim-pathogen)

$ git clone https://github.com/raimon49/requirements.txt.vim.git ~/.vim/bundle/requirements.txt.vim

Manually

Deploy all files under $VIMRUNTIME.

File detection

requirements.txt.vim detects filename automatically.

  • requirements.txt
  • dev-requirements.txt
  • requirements/dev.txt
  • requires/tests.txt
  • requirements.in
    • Use for pip-tools (a.k.a. Better dependency management tool).

Customize

If you want to customize it.

" Add 'freeze' to your .vimrc as a detection pattern
let g:requirements#detect_filename_pattern = 'freeze'
$ pip freeze > my-freeze.txt
# You can edit it as a 'Requirements File Format'
$ vim my-freeze.txt

License

MIT License