Skip to content

Commit e1969c3

Browse files
Improve running and debugging of scripts
- Adapt for running under Neovim more smoothly. - Add running scripts using the built-in terminal. - Add commands :Bash, :BashDirectRun, :BashOutputMethod, and :BashExecutable. - Remove the definition of the maps `CTRL+F9`, `SHIFT+F9`, and `ALT+F9`. Add them to your filetype plug-in if you want to use them. - Integration of BashDB moved into the toolbox. Note: The filetype plug-in has been moved, and is thus not loaded automatically anymore. Copy it from `bash-support/rc` to `ftplugin`, or add the commands there to your own filetype plug-in. taken from WolfgangMehner/vim-plugins, revision WolfgangMehner/vim-plugins@174e6ff
1 parent d266dad commit e1969c3

15 files changed

Lines changed: 3862 additions & 1167 deletions

File tree

README.md

Lines changed: 52 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,34 @@ Preface
33

44
This repository is mainly for the use with plug-in managers.
55

6-
The development happens here:
7-
[WolfgangMehner/vim-plugins](https://github.com/WolfgangMehner/vim-plugins)
6+
Have a look at the [Screenshot Page](https://wolfgangmehner.github.io/vim-plugins/bashsupport.html).
7+
8+
The development happens in [WolfgangMehner/vim-plugins](https://github.com/WolfgangMehner/vim-plugins).
9+
10+
11+
Preview Version
12+
================================================================================
13+
14+
___This is a preview version!___
15+
16+
Notable new features:
17+
18+
- Call the Bash interpreter via the command-line: `:Bash <args>`. You can use it
19+
to pass arguments to the script.
20+
- Run Bash in a terminal window directly inside the editor.
21+
- The template library now has shell options and variables for BASH Version 4.4.
22+
- The debugger integration has been move into the toolbox, and comes with
23+
extended functionality.
24+
25+
The terminal window relies on the new `+terminal` feature, which becomes
26+
available with a patch level of approx. `8.0.1000`.
27+
28+
_Please read the release notes below._
829

930

1031
--------------------------------------------------------------------------------
1132

12-
README for bash-support.vim (Version 4.4pre) / June 22 2017
33+
README for bash-support.vim (Version 5.0alpha) / October 10 2017
1334
================================================================================
1435

1536
* INSTALLATION
@@ -166,17 +187,10 @@ There are a lot of features and options which can be used and influenced:
166187
* removing the root menu
167188
* using additional plug-ins
168189

169-
Look at the Bash Support help with:
190+
Actions differ for different modes. Please read the documentation:
170191

171192
:help bashsupport
172193

173-
+-----------------------------------------------+
174-
| +-------------------------------------------+ |
175-
| | ** Please read the documentation ** | |
176-
| | Actions differ for different modes! | |
177-
| +-------------------------------------------+ |
178-
+-----------------------------------------------+
179-
180194
Any problems? See the TROUBLESHOOTING section at the end of the help file
181195
`doc/bashsupport.txt`.
182196

@@ -186,17 +200,34 @@ Any problems? See the TROUBLESHOOTING section at the end of the help file
186200
RELEASE NOTES
187201
================================================================================
188202

189-
RELEASE NOTES FOR VERSION 4.4pre
203+
RELEASE NOTES FOR VERSION 5.0alpha
190204
----------------------------------------------------------------------
191-
- Add shell options and variables for BASH Version 4.4.
205+
- Adapt for running under Neovim more smoothly.
206+
- Add command `:Bash [<args>]` to run the interpreter with arguments.
207+
- Add command `:BashDirectRun` to run executable scripts without `g:BASH_Executable`.
208+
- Add command `:BashOutputMethod` to set the output destination for `:Bash`.
209+
- Add command `:BashExecutable` to set the executable during runtime.
210+
- Add output method 'terminal' for running scripts in a terminal window
211+
(requires +terminal).
192212
- The templates which are inserted into new files as file skeletons can be
193213
specified in the templates library, via the property:
194-
Bash::FileSkeleton::Script
195-
- Add configuration variables 'g:BASH_Ctrl_j' and 'g:BASH_Ctrl_d' to control the
196-
creation of the CTRL+J and CTRL+D maps.
197-
- New and reworked templates.
214+
`Bash::FileSkeleton::Script`
215+
- Use `g:Xterm_Executable`.
216+
- Use `g:Xterm_Options` instead of `g:BASH_XtermDefaults`. The setting
217+
`g:BASH_XtermDefaults` still works for backwards compatibility.
218+
- Add configuration variables `g:BASH_Ctrl_j` and `g:BASH_Ctrl_d` to control the
219+
creation of the `CTRL+J` and `CTRL+D` maps.
220+
- Remove the definition of the maps `CTRL+F9`, `SHIFT+F9`, and `ALT+F9`.
221+
Add them to your filetype plug-in if you want to use them.
222+
- Integration of BashDB moved into the toolbox.
223+
- Add shell options and variables for BASH Version 4.4.
198224
- Minor corrections and improvements.
199225

226+
Note: The filetype plug-in has been moved, and is thus not loaded automatically
227+
anymore. Copy it from `bash-support/rc` to `ftplugin`, or add the commands there
228+
to your own filetype plug-in.
229+
230+
200231
RELEASE NOTES FOR OLDER VERSIONS
201232
----------------------------------------------------------------------
202233
-> see file `bash-support/doc/ChangeLog`
@@ -240,10 +271,6 @@ ___The following files and extensions are for convenience only.___
240271
___bash-support.vim will work without them.___
241272
___The settings are explained in the files themselves.___
242273

243-
ftplugin/sh.vim
244-
Suggestion for a filetype plugin:
245-
defines additional maps
246-
247274
ftdetect/template.vim
248275
ftplugin/template.vim
249276
syntax/template.vim
@@ -271,6 +298,10 @@ ___The settings are explained in the files themselves.___
271298
The file is commented. Append it to your .vimrc if you
272299
like.
273300

301+
bash-support/rc/sh.vim
302+
Example filetype plug-ins for Bash:
303+
defines additional maps
304+
274305
bash-support/rc/*.templates
275306
Sample template files for customization. Used by the
276307
template setup wizard.

0 commit comments

Comments
 (0)