Skip to content

Commit 0fa97d4

Browse files
committed
executioner.vim 1.1.2
Update defaults .py executes python .py2 executes python2
1 parent e0c2001 commit 0fa97d4

File tree

2 files changed

+41
-45
lines changed

2 files changed

+41
-45
lines changed

README.md

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
This plugin allows you to easily execute files in the terminal or a separate
44
buffer.
55

6-
**NOTE: This plugin is currently in a pre-release state. It works at a basic
7-
level, but I don't feel like it is ready for its first "real" release.
8-
Functionality is currently being added and bugs are getting ironed out.**
9-
106
![](https://raw.githubusercontent.com/wiki/EvanQuan/vim-executioner/executioner.PNG)
117

128
Table of Contents
@@ -158,30 +154,30 @@ default defined as:
158154
" extension : command
159155
" Command is executed if file has specified extension
160156
let g:executioner#extensions = {
161-
\ 'c' : 'gcc % -o @.out;./@.out',
162-
\ 'cpp' : 'g++ % -o @.out;./@.out',
163-
\ 'hs' : 'ghci %',
164-
\ 'js' : 'node %',
165-
\ 'm' : 'matlab',
166-
\ 'ml' : 'ocaml % -o @.out;./@.out',
167-
\ 'php' : 'php %',
168-
\ 'pl' : 'perl %',
169-
\ 'prolog' : 'swipl %',
170-
\ 'py' : 'python3 %',
171-
\ 'py2' : 'python %',
172-
\ 'R' : 'Rscript %',
173-
\ 'r' : 'Rscript %',
174-
\ 'rb' : 'ruby %',
175-
\ 'rc' : 'rustc % -o @.out;./@.out',
176-
\ 'sh' : 'bash %',
177-
\ 'swift' : 'swiftc % -o @.out;./@.out',
178-
\}
157+
\ 'c' : 'gcc % -o @.out;./@.out',
158+
\ 'cpp' : 'g++ % -o @.out;./@.out',
159+
\ 'hs' : 'ghci %',
160+
\ 'js' : 'node %',
161+
\ 'm' : 'matlab',
162+
\ 'ml' : 'ocaml % -o @.out;./@.out',
163+
\ 'php' : 'php %',
164+
\ 'pl' : 'perl %',
165+
\ 'prolog' : 'swipl %',
166+
\ 'py' : 'python %',
167+
\ 'py2' : 'python2 %',
168+
\ 'R' : 'Rscript %',
169+
\ 'r' : 'Rscript %',
170+
\ 'rb' : 'ruby %',
171+
\ 'rc' : 'rustc % -o @.out;./@.out',
172+
\ 'sh' : 'bash %',
173+
\ 'swift' : 'swiftc % -o @.out;./@.out',
174+
\}
179175
180176
" file name : command
181177
" Command is executed if file has specified name
182178
let g:executioner#names = {
183-
\ 'makefile': 'make',
184-
\}
179+
\ 'makefile': 'make',
180+
\}
185181
```
186182

187183
`g:executioner#extensions` determines commands by file extension. For example,

plugin/executioner.vim

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" ============================================================================
22
" File: executioner.vim
33
" Maintainer: https://github.com/EvanQuan/vim-executioner/
4-
" Version: 1.1.1
4+
" Version: 1.1.2
55
"
66
" A Vim plugin to easily execute files in the terminal or a separate buffer.
77
" ============================================================================
@@ -41,32 +41,32 @@ let s:NAME_COMMAND = 1
4141
" Command is executed if file has specified extension
4242
if !exists("g:executioner#extensions")
4343
let g:executioner#extensions = {
44-
\ 'c' : 'gcc % -o @.out;./@.out',
45-
\ 'cpp' : 'g++ % -o @.out;./@.out',
46-
\ 'hs' : 'ghci %',
47-
\ 'js' : 'node %',
48-
\ 'm' : 'matlab',
49-
\ 'ml' : 'ocaml % -o @.out;./@.out',
50-
\ 'php' : 'php %',
51-
\ 'pl' : 'perl %',
52-
\ 'prolog' : 'swipl %',
53-
\ 'py' : 'python3 %',
54-
\ 'py2' : 'python %',
55-
\ 'R' : 'Rscript %',
56-
\ 'r' : 'Rscript %',
57-
\ 'rb' : 'ruby %',
58-
\ 'rc' : 'rustc % -o @.out;./@.out',
59-
\ 'sh' : 'bash %',
60-
\ 'swift' : 'swiftc % -o @.out;./@.out',
61-
\}
44+
\ 'c' : 'gcc % -o @.out;./@.out',
45+
\ 'cpp' : 'g++ % -o @.out;./@.out',
46+
\ 'hs' : 'ghci %',
47+
\ 'js' : 'node %',
48+
\ 'm' : 'matlab',
49+
\ 'ml' : 'ocaml % -o @.out;./@.out',
50+
\ 'php' : 'php %',
51+
\ 'pl' : 'perl %',
52+
\ 'prolog' : 'swipl %',
53+
\ 'py' : 'python %',
54+
\ 'py2' : 'python2 %',
55+
\ 'R' : 'Rscript %',
56+
\ 'r' : 'Rscript %',
57+
\ 'rb' : 'ruby %',
58+
\ 'rc' : 'rustc % -o @.out;./@.out',
59+
\ 'sh' : 'bash %',
60+
\ 'swift' : 'swiftc % -o @.out;./@.out',
61+
\}
6262
endif
6363

6464
" file name : command
6565
" Command is executed if file has specified name
6666
if !exists("g:executioner#names")
6767
let g:executioner#names = {
68-
\ 'makefile': 'make',
69-
\}
68+
\ 'makefile': 'make',
69+
\}
7070
endif
7171

7272
function! s:SplitNameAndExtenstion(file) abort

0 commit comments

Comments
 (0)