diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-04-09 12:07:16 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-04-09 12:07:16 +0200 |
| commit | 77d229c0a5d642b57e51270a2e85c48dc2273598 (patch) | |
| tree | 6c1f1042aa680d86b81f9c3021276fce79db735f | |
| parent | 69402ecce57830be73e741206f7a003c15bd96bf (diff) | |
| parent | ebe726c599c537ec3663361f691fd48d6cac78f6 (diff) | |
| download | vis-77d229c0a5d642b57e51270a2e85c48dc2273598.tar.gz vis-77d229c0a5d642b57e51270a2e85c48dc2273598.tar.xz | |
Merge branch 'patch-3' of https://github.com/larryhynes/vis
| -rw-r--r-- | README.md | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -440,6 +440,30 @@ Operators can be forced to work line wise by specifying `V`. :e *.c # opens a menu with all C files :e . # opens a menu with all files of the current directory +### Configuring vis: visrc.lua, and environment variables + +Settings and keymaps can be specified in a `visrc.lua` file, which will +be read by `vis` at runtime. An example `visrc.lua` file is installed +in `/usr/local/share/vis` by default. This file can be copied to +`$XDG_CONFIG_HOME/vis` (which defaults to `$HOME/.config/vis`) for +further configuration. + +The environment variable `VIS_PATH` can be set to override the path +that `vis` will look for Lua support files as used for syntax +highlighting. `VIS_PATH` defaults (in this order) to + +- The location of the `vis` binary +- `$XDG_CONFIG_HOME/vis`, where `$XDG_CONFIG_HOME` refers to +`$HOME/.config` if unset +- `/usr/local/share/vis` +- `/usr/share/vis` + +The environment variable `VIS_THEME` can be set to specify the +theme used by `vis` e.g. + + VIS_THEME=/path/to/your/theme.lua + export VIS_THEME + ### Runtime Configurable Key Bindings Vis supports run time key bindings via the `:{un,}map{,-window}` set of |
