Skip to content

Commit eace86f

Browse files
committed
1.6.0
Add powershell default.
1 parent f95947a commit eace86f

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

doc/executioner.txt

+1
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ Type: |Dictionary|
237237
'js' : 'node %',
238238
'm' : 'matlab',
239239
'ml' : 'ocaml % -o @.out;./@.out',
240+
'ps1' : 'powershell ./%',
240241
'php' : 'php %',
241242
'pl' : 'perl %',
242243
'prolog' : 'swipl %',

plugin/executioner.vim

+9-6
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,15 @@ if g:executioner#load_defaults " {{{
8585
if !has_key(g:executioner#extensions, 'ml')
8686
let g:executioner#extensions['ml'] = 'ocaml ' . g:executioner#full_name . ' -o ' . g:executioner#base_name . '.out;./' . g:executioner#base_name . '.out'
8787
endif
88+
if !has_key(g:executioner#extensions, 'markdown')
89+
let g:executioner#extensions['markdown'] = ':InstantMarkdownPreview'
90+
endif
91+
if !has_key(g:executioner#extensions, 'md')
92+
let g:executioner#extensions['md'] = ':InstantMarkdownPreview'
93+
endif
94+
if !has_key(g:executioner#extensions, 'ps1')
95+
let g:executioner#extensions['ps1'] = 'powershell ./' . g:executioner#full_name
96+
endif
8897
if !has_key(g:executioner#extensions, 'php')
8998
let g:executioner#extensions['php'] = 'php ' . g:executioner#full_name . ''
9099
endif
@@ -94,12 +103,6 @@ if g:executioner#load_defaults " {{{
94103
if !has_key(g:executioner#extensions, 'prolog')
95104
let g:executioner#extensions['prolog'] = 'swipl ' . g:executioner#full_name . ''
96105
endif
97-
if !has_key(g:executioner#extensions, 'markdown')
98-
let g:executioner#extensions['markdown'] = ':InstantMarkdownPreview'
99-
endif
100-
if !has_key(g:executioner#extensions, 'md')
101-
let g:executioner#extensions['md'] = ':InstantMarkdownPreview'
102-
endif
103106
if !has_key(g:executioner#extensions, 'py')
104107
let g:executioner#extensions['py'] = 'python3 ' . g:executioner#full_name . ''
105108
endif

0 commit comments

Comments
 (0)