mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-26 13:01:26 -05:00
Improved vimpager documentation
This commit is contained in:
parent
caed6a7476
commit
6f1846d388
1 changed files with 25 additions and 2 deletions
27
README.md
27
README.md
|
@ -46,9 +46,32 @@ A theme, config and collection of plugins for Vim.
|
||||||
|
|
||||||
### Vimpager ###
|
### Vimpager ###
|
||||||
|
|
||||||
Once darkcloud-vimconfig has been set up, you can configure `vimpager` to use it by running: `ln -s /etc/darkcloud-vimconfig/vimpagerrc /etc/vimpagerrc` for a system-wide configuration, or `ln -s /etc/darkcloud-vimconfig/vimpagerrc ~/.vimpagerrc` for a given user (assuming you've used the default path @ _"/etc/darkcloud-vimconfig"_).
|
Once darkcloud-vimconfig has been set up, you can configure `vimpager` to use it by running (assuming the default path @ _"/etc/darkcloud-vimconfig"_):
|
||||||
|
|
||||||
As usual, to have your system use vimpager in place of less, you'll need to set the PAGER environment variable to vimpager: `export PAGER=vimpager` and configure an alias for less: `alias less='vimpager'`.
|
`ln -s /etc/darkcloud-vimconfig/vimpagerrc /etc/vimpagerrc` (for a system-wide configuration)
|
||||||
|
|
||||||
|
or:
|
||||||
|
|
||||||
|
`ln -s /etc/darkcloud-vimconfig/vimpagerrc ~/.vimpagerrc` (for a given user).
|
||||||
|
|
||||||
|
Similarly, the _vimpagerrc_ can be used for `vimcat` as well by running:
|
||||||
|
|
||||||
|
`ln -s /etc/darkcloud-vimconfig/vimpagerrc /etc/vimcatrc` (for a system-wide configuration)
|
||||||
|
|
||||||
|
or:
|
||||||
|
|
||||||
|
`ln -s /etc/darkcloud-vimconfig/vimpagerrc ~/.vimcatrc` (for a given user).
|
||||||
|
|
||||||
|
As usual, to have your system use `vimpager` in place of `less`, you'll need to set the **$PAGER** environment variable to `vimpager`:
|
||||||
|
|
||||||
|
`export PAGER=vimpager`
|
||||||
|
|
||||||
|
and configure aliases for less and cat in _"/etc/bash.bashrc"_ or _"~/.bashrc"_:
|
||||||
|
|
||||||
|
```
|
||||||
|
alias less='vimpager'
|
||||||
|
alias cat='vimcat'
|
||||||
|
```
|
||||||
|
|
||||||
## Configuration ##
|
## Configuration ##
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue