mirror of
https://github.com/raimon49/requirements.txt.vim.git
synced 2025-12-06 10:04:23 +08:00
d6da4276bb88094a935db9bfb39a532632905b96
requirements.txt.vim
the Requirements File Format syntax support for Vim.
Installation
Plugin manager (recommended)
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.txtdev-requirements.txtrequirements/dev.txtrequires/tests.txtrequirements.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
Description
Languages
Vim Script
95.9%
Ruby
4.1%
