Skip to content

Commit d8a12bd

Browse files
Fritz Mehnervim-scripts
Fritz Mehner
authored andcommitted
Version 4.2
- Default shell can be set in ~/.vimrc via g:BASH_Executable. - Errors can be parsed for bash, dash, ksh, zsh. - Bugfix: QuickFix list doesn't work properly (thanks to @PengZheng) - 'Run -> make script executable' (\re) is now a toggle. - Minor corrections and improvements.
1 parent 73e16bb commit d8a12bd

File tree

8 files changed

+335
-202
lines changed

8 files changed

+335
-202
lines changed

autoload/mmtemplates/core.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ endif
4141
if &cp || ( exists('g:Templates_Version') && ! exists('g:Templates_DevelopmentOverwrite') )
4242
finish
4343
endif
44-
let g:Templates_Version= '0.9.2' " version number of this script; do not change
44+
let g:Templates_Version= '0.9.2-1' " version number of this script; do not change
4545
"
4646
if ! exists ( 'g:Templates_MapInUseWarn' )
4747
let g:Templates_MapInUseWarn = 1
@@ -3679,6 +3679,9 @@ function! mmtemplates#core#EditTemplateFiles ( library, file )
36793679
endif
36803680
"
36813681
if type( a:file ) == type( 0 )
3682+
if get( t_lib.library_files, a:file, '' ) == ''
3683+
return s:ErrorMsg ( 'No template file with index '.a:file.'.' )
3684+
endif
36823685
let file = t_lib.library_files[ a:file ]
36833686
elseif type( a:file ) == type( '' )
36843687
"

bash-support/README.bashsupport

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
README for bash-support.vim (Version 4.1) / December 09 2013
1+
README for bash-support.vim (Version 4.2) / January 04 2014
22

33
* INSTALLATION
44
* RELEASE NOTES
@@ -123,15 +123,14 @@ Look at the bashsupport help with
123123
+-----------------------------------------------+
124124

125125
=======================================================================================
126-
RELEASE NOTES FOR VERSION 4.1
126+
RELEASE NOTES FOR VERSION 4.2
127127
=======================================================================================
128128

129-
- Filetype plugin added.
130-
- Bugfix: Setup of local templates in case of global installation.
131-
- Adjusting end-of-line comments improved.
132-
- Submenu 'Regexp' renamed to 'PatternMatching'. Appropriate hotkeys renamed.
133-
- Minor bugfixes.
134-
- Documentation updated.
129+
- Default shell can be set in ~/.vimrc via g:BASH_Executable.
130+
- Errors can be parsed for bash, dash, ksh, zsh.
131+
- Bugfix: QuickFix list doesn't work properly (thanks to @PengZheng)
132+
- 'Run -> make script executable' (\re) is now a toggle.
133+
- Minor corrections and improvements.
135134

136135
OLDER RELEASE NOTES : see file 'ChangeLog'
137136
=======================================================================================

doc/ChangeLog

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
=======================================================================================
2+
RELEASE NOTES FOR VERSION 4.1
3+
=======================================================================================
4+
5+
- Filetype plugin added.
6+
- Bugfix: Setup of local templates in case of global installation.
7+
- Adjusting end-of-line comments improved.
8+
- Submenu 'Regexp' renamed to 'PatternMatching'. Appropriate hotkeys renamed.
9+
- Minor bugfixes.
10+
- Documentation updated.
11+
112
=======================================================================================
213
RELEASE NOTES FOR VERSION 4.0
314
=======================================================================================

doc/bash-hotkeys.pdf

703 Bytes
Binary file not shown.

doc/bash-hotkeys.tex

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
%%
77
%% Author: Dr.-Ing. Fritz Mehner
88
%% Email: mehner.fritz@fh-swf.de
9-
%% Copyright: Copyright (C) 2013 Dr.-Ing. Fritz Mehner (mehner.fritz@fh-swf.de)
9+
%% Copyright: Copyright (C) 2013-2014 Dr.-Ing. Fritz Mehner (mehner.fritz@fh-swf.de)
1010
%% Version: see \Pluginversion
1111
%% Created: 20.05.2013
1212
%%
@@ -28,7 +28,7 @@
2828

2929
\setlength\parindent{0pt}
3030

31-
\newcommand{\Pluginversion}{4.1}
31+
\newcommand{\Pluginversion}{4.2}
3232
\newcommand{\ReleaseDate}{\today}
3333
\newcommand{\Rep}{{\scriptsize{[n]}}}
3434

@@ -85,11 +85,11 @@
8585
%%======================================================================
8686
%% table, left part [[[1
8787
%%======================================================================
88-
%%~~~~~ TABULAR : begin ~~~~~~~~~~
89-
\begin{tabular}[]{|p{11mm}|p{60mm}|}
9088
%%----------------------------------------------------------------------
91-
%% main menu
89+
%% main menu [[[2
9290
%%----------------------------------------------------------------------
91+
%%~~~~~ TABULAR : begin ~~~~~~~~~~
92+
\begin{tabular}[]{|p{11mm}|p{60mm}|}
9393
\hline
9494
\multicolumn{2}{|r|}{\textsl{\textbf{B}ash}}\\[1.0ex]
9595
\hline \verb'\bps' & \textbf{p}arameter \textbf{s}ubstitution (list) \hfill (n, i)\\
@@ -100,7 +100,7 @@
100100
\hline \verb'\bso' & \textbf{s}h\textbf{o}pts (list) \hfill (n, i)\\
101101
\hline
102102
%%----------------------------------------------------------------------
103-
%% menu Comments
103+
%% menu Comments [[[2
104104
%%----------------------------------------------------------------------
105105
\hline
106106
\multicolumn{2}{|r|}{\textsl{\textbf{C}omments}} \\[1.0ex]
@@ -129,12 +129,11 @@
129129
%%======================================================================
130130
%% table, middle part [[[1
131131
%%======================================================================
132-
%
133-
%%~~~~~ TABULAR : begin ~~~~~~~~~~
134-
\begin{tabular}[]{|p{11mm}|p{60mm}|}
135132
%%----------------------------------------------------------------------
136-
%% menu Statements
133+
%% menu Statements [[[2
137134
%%----------------------------------------------------------------------
135+
%%~~~~~ TABULAR : begin ~~~~~~~~~~
136+
\begin{tabular}[]{|p{11mm}|p{60mm}|}
138137
\hline
139138
\multicolumn{2}{|r|}{\textsl{\textbf{S}tatements}} \\[1.0ex]
140139
\hline \verb'\sc' & \verb'case in ... esac' \hfill (n, i)\\
@@ -160,7 +159,7 @@
160159
\hline
161160
%%
162161
%%----------------------------------------------------------------------
163-
%% menu Tests
162+
%% menu Tests [[[2
164163
%%----------------------------------------------------------------------
165164
\hline
166165
\multicolumn{2}{|r|}{\textsl{\textbf{T}ests}} \\[1.0ex]
@@ -176,7 +175,7 @@
176175
\hline
177176
%%
178177
%%----------------------------------------------------------------------
179-
%% menu IO-Redirection
178+
%% menu IO-Redirection [[[2
180179
%%----------------------------------------------------------------------
181180
\hline
182181
\multicolumn{2}{|r|}{\textsl{\textbf{I}O-Redirection}} \\[1.0ex]
@@ -190,13 +189,11 @@
190189
%%======================================================================
191190
%% table, right part [[[1
192191
%%======================================================================
193-
%
194-
%%~~~~~ TABULAR : begin ~~~~~~~~~~
195-
\begin{tabular}[]{|p{11mm}|p{62mm}|}
196-
%
197192
%%----------------------------------------------------------------------
198-
%% menu Pattern Matching
193+
%% menu Pattern Matching [[[2
199194
%%----------------------------------------------------------------------
195+
%%~~~~~ TABULAR : begin ~~~~~~~~~~
196+
\begin{tabular}[]{|p{11mm}|p{62mm}|}
200197
\hline
201198
\multicolumn{2}{|r|}{\textsl{\textbf{P}attern Matching}} \\[1.0ex]
202199
\hline \verb'pzo' & zero or one, \verb' ?( | )' \hfill (n, i)\\
@@ -209,7 +206,7 @@
209206
\hline
210207
%
211208
%%----------------------------------------------------------------------
212-
%% menu Snippet
209+
%% menu Snippet [[[2
213210
%%----------------------------------------------------------------------
214211
\hline
215212
\multicolumn{2}{|r|}{\textsl{S\textbf{n}ippets}} \\[1.0ex]
@@ -222,24 +219,24 @@
222219
\hline \verb'\nts' & choose style \hfill (n, i)\\
223220
\hline
224221
%%----------------------------------------------------------------------
225-
%% menu Run
222+
%% menu Run [[[2
226223
%%----------------------------------------------------------------------
227224
\hline
228225
\multicolumn{2}{|r|}{\textsl{\textbf{R}un}} \\[1.0ex]
229-
\hline \verb'\rr' & update file, run script \hfill (n, i, v$^1$)\\
230-
\hline \verb'\ra' & set script cmd. line arguments \hfill (n, i)\\
231-
\hline \verb'\rba' & set Bash cmd. line arguments \hfill (n, i)\\
232-
\hline \verb'\rc' & update file, check syntax \hfill (n, i)\\
233-
\hline \verb'\rco' & syntax check options \hfill (n, i)\\
234-
\hline \verb'\rd' & start debugger$^1$ \hfill (n, i)\\
235-
\hline \verb'\re' & make script executable$^1$ \hfill (n, i)\\
236-
\hline \verb'\rh' & hardcopy buffer \hfill (n, i, v)\\
237-
\hline \verb'\rs' & plug-in settings \hfill (n, i)\\
238-
\hline \verb'\rx' & set xterm size$^1$ \hfill (n, i, GUI only)\\
239-
\hline \verb'\ro' & change output destination \hfill (n, i)\\
226+
\hline \verb'\rr' & update file, run script \hfill (n, i, v$^1$)\\
227+
\hline \verb'\ra' & set script cmd. line arguments \hfill (n, i)\\
228+
\hline \verb'\rba' & set Bash cmd. line arguments \hfill (n, i)\\
229+
\hline \verb'\rc' & update file, check syntax \hfill (n, i)\\
230+
\hline \verb'\rco' & syntax check options \hfill (n, i)\\
231+
\hline \verb'\rd' & start debugger$^1$ \hfill (n, i)\\
232+
\hline \verb'\re' & make script executable/not exec.$^1$ \hfill (n, i)\\
233+
\hline \verb'\rh' & hardcopy buffer \hfill (n, i, v)\\
234+
\hline \verb'\rs' & plug-in settings \hfill (n, i)\\
235+
\hline \verb'\rx' & set xterm size$^{1,2}$ \hfill (n, i)\\
236+
\hline \verb'\ro' & change output destination \hfill (n, i)\\
240237
\hline
241238
%%----------------------------------------------------------------------
242-
%% menu Help
239+
%% menu Help [[[2
243240
%%----------------------------------------------------------------------
244241
\hline
245242
\multicolumn{2}{|r|}{\textsl{\textbf{H}elp}}\\[1.0ex]
@@ -255,9 +252,10 @@
255252
%
256253
\begin{minipage}[b]{75mm}%
257254
\scriptsize{%
258-
\vspace{10mm}
259-
\hrulefill\\
260-
$^1$ {Linux/U**x only}
255+
\vspace{2mm}
256+
%\hrulefill\\
257+
$^1$ {Linux/U**x only}\\
258+
$^2$ {GUI only}
261259
}%
262260
\end{minipage}\\
263261
%

0 commit comments

Comments
 (0)