mirror of
https://github.com/raimon49/requirements.txt.vim.git
synced 2026-05-17 22:09:38 +08:00
Add section of 'File detection'
This commit is contained in:
@@ -4,7 +4,7 @@ requirements.txt.vim
|
|||||||
[](https://travis-ci.org/raimon49/requirements.txt.vim)
|
[](https://travis-ci.org/raimon49/requirements.txt.vim)
|
||||||
[](https://gemnasium.com/raimon49/requirements.txt.vim)
|
[](https://gemnasium.com/raimon49/requirements.txt.vim)
|
||||||
|
|
||||||
[the Requirements File Format](http://pip.readthedocs.org/en/stable/reference/pip_install/#requirements-file-format) syntax support for Vim
|
[the Requirements File Format](http://pip.readthedocs.org/en/stable/reference/pip_install/#requirements-file-format) syntax support for Vim.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -36,6 +36,31 @@ $ git clone https://github.com/raimon49/requirements.txt.vim.git ~/.vim/bundle/r
|
|||||||
|
|
||||||
Deploy all files under `$VIMRUNTIME`
|
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](https://github.com/nvie/pip-tools) (a.k.a. Better dependency management tool).
|
||||||
|
|
||||||
|
If you want to customize it.
|
||||||
|
|
||||||
|
```vim
|
||||||
|
" Add 'freeze' to your .vimrc as a detection pattern
|
||||||
|
let g:requirements#detect_filename_pattern = 'freeze'
|
||||||
|
```
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ pip freeze > my-freeze.txt
|
||||||
|
# You can edit it as a 'Requirements File Format'
|
||||||
|
$ vim my-freeze.txt
|
||||||
|
```
|
||||||
|
|
||||||
License
|
License
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user