Skip to content

Commit 551c477

Browse files
authored
Merge pull request #56 from gusano/README
README: use table to describe Vim variables
2 parents c4ff55e + 1abb0fa commit 551c477

1 file changed

Lines changed: 9 additions & 21 deletions

File tree

README.md

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Installation
2727
### `scvim` plugin installation
2828

2929
It is highly recommended to use either Vim 8+'s native `packages` or a plugin
30-
manager to install `scvim`.
30+
manager to install `scvim`.
3131

3232
The most common package manager addons are:
3333

@@ -91,20 +91,14 @@ Path to the tags file
9191

9292
The following variables are available for configuration in your `.vimrc` file:
9393

94-
* `g:sclangTerm`: Command to open a terminal window. Defaults to `"open -a
95-
Terminal.app"` on OSX, and `"x-terminal-emulator -e $SHELL -ic"` on Linux.
96-
On some Linux systems this value may need to changed.
97-
* `g:sclangPipeApp`: Absolute path to the plugin **start_pipe** script. (Default
98-
`"~/.vim/bundle/scvim/bin/start_pipe"`)
99-
Change it if you have installed the plugin in other location.
100-
* `g:sclangDispatcher`: Absolute path to the plugin **sc_dispatcher** script.
101-
(Default `"~/.vim/bundle/scvim/bin/sc_dispatcher"`)
102-
Change it if you have installed the plugin in other location.
103-
* `g:scFlash`: Highlighting of evaluated code. (Default `0`)
104-
* `g:scSplitDirection`: sets default window orientation when using a supported
105-
terminal multiplexer. See Multiplexer Options below for more info. (Default `"h"`)
106-
* `g:scSplitSize`: sets post window size (% of screen) when using a supported
107-
terminal multiplexer. See Multiplexer Options below for more info. (Default `50`)
94+
| Variable | Description | Default |
95+
| -------- | ----------- | ------- |
96+
| `g:sclangTerm` | Command to open a terminal window | `"open -a Terminal.app"` on macOS,<br />`"x-terminal-emulator -e $SHELL -ic"` on Linux |
97+
| `g:sclangPipeApp` | Absolute path to **start_pipe** script | `"~/.vim/bundle/scvim/bin/start_pipe"` |
98+
| `g:sclangDispatcher` | Absolute path to **sc_dispatcher** script | `"~/.vim/bundle/scvim/bin/sc_dispatcher"` |
99+
| `g:scFlash` | Highlighting of evaluated code | `0` |
100+
| `g:scSplitDirection` | Default window orientation when using a terminal multiplexer | `"h"` |
101+
| `g:scSplitSize` | Post window size (% of screen) when using a terminal multiplexer | `50` |
108102

109103
Example `.vimrc` line for gnome-terminal users:
110104

@@ -114,12 +108,6 @@ To enable highlighting of evaluated code:
114108

115109
let g:scFlash = 1
116110

117-
If for some reason vim can't find the path to the two launch scripts
118-
**start_pipe** and **sc_dispatcher** you can set them manually in your .vimrc:
119-
120-
let g:sclangPipeApp = "~/.vim/bundle/scvim/bin/start_pipe"
121-
let g:sclangDispatcher = "~/.vim/bundle/scvim/bin/sc_dispatcher"
122-
123111
Usage
124112
-----
125113
To start open a file with the right extension :e foo.sc(d)

0 commit comments

Comments
 (0)