mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-11-26 08:11:26 -05:00
compress the vimpager stuff into fewer lines
This commit is contained in:
parent
6f1846d388
commit
c7c13f22b9
1 changed files with 3 additions and 9 deletions
12
README.md
12
README.md
|
@ -48,25 +48,19 @@ A theme, config and collection of plugins for Vim.
|
||||||
|
|
||||||
Once darkcloud-vimconfig has been set up, you can configure `vimpager` to use it by running (assuming 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"_):
|
||||||
|
|
||||||
`ln -s /etc/darkcloud-vimconfig/vimpagerrc /etc/vimpagerrc` (for a system-wide configuration)
|
`ln -s /etc/darkcloud-vimconfig/vimpagerrc /etc/vimpagerrc` (for a system-wide configuration), or:
|
||||||
|
|
||||||
or:
|
|
||||||
|
|
||||||
`ln -s /etc/darkcloud-vimconfig/vimpagerrc ~/.vimpagerrc` (for a given user).
|
`ln -s /etc/darkcloud-vimconfig/vimpagerrc ~/.vimpagerrc` (for a given user).
|
||||||
|
|
||||||
Similarly, the _vimpagerrc_ can be used for `vimcat` as well by running:
|
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)
|
`ln -s /etc/darkcloud-vimconfig/vimpagerrc /etc/vimcatrc` (for a system-wide configuration), or:
|
||||||
|
|
||||||
or:
|
|
||||||
|
|
||||||
`ln -s /etc/darkcloud-vimconfig/vimpagerrc ~/.vimcatrc` (for a given user).
|
`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`:
|
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`
|
`export PAGER=vimpager`, and configure aliases for less and cat in _"/etc/bash.bashrc"_ or _"~/.bashrc"_:
|
||||||
|
|
||||||
and configure aliases for less and cat in _"/etc/bash.bashrc"_ or _"~/.bashrc"_:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
alias less='vimpager'
|
alias less='vimpager'
|
||||||
|
|
Loading…
Reference in a new issue