Skip to content

Commit

Permalink
Added zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
williamjameshandley committed Jan 22, 2019
1 parent afd712d commit 46106c5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ interactive interpreters. Vimteractive will never aim to do things like
autocompletion, leaving that to other, more developed tools such as
`YouCompleteMe <https://github.com/Valloric/YouCompleteMe>`__.

The activating commands are - ipython ``:Iipython`` - python
``:Ipython`` - maple ``:Imaple`` - bash ``:Ibash``
The activating commands are
- ipython ``:Iipython``
- python ``:Ipython``
- maple ``:Imaple``
- bash ``:Ibash``
- zsh ``:Izsh``

Commands may be sent from a text file to the chosen terminal using
``CTRL-S``.
Expand Down Expand Up @@ -120,6 +124,7 @@ Supported terminals
- ``:Ipython`` Activate a python terminal
- ``:Imaple`` Activate a maple terminal
- ``:Ibash`` Activate a bash terminal
- ``:Izsh`` Activate a zsh terminal

Sending commands
~~~~~~~~~~~~~~~~
Expand Down
2 changes: 2 additions & 0 deletions doc/vimteractive.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ The activating commands are
- python |:Ipython|
- maple |:Imaple|
- bash |:Ibash|
- zsh |:Izsh|

Commands may be sent from a text file to the chosen terminal using CTRL-S.
See |v_CTRL_S| for more details.
Expand Down Expand Up @@ -78,6 +79,7 @@ Supported terminals *vimteractive-terminals*
*:Ipython* Activate a python terminal
*:Imaple* Activate a maple terminal
*:Ibash* Activate a bash terminal
*:Izsh* Activate a zsh terminal

Sending commands *v_CTRL_S*

Expand Down
2 changes: 2 additions & 0 deletions plugin/vimteractive.vim
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ let g:vimteractive_terminal = ''
let g:vimteractive_ipython_command = 'ipython --matplotlib --no-autoindent'
let g:vimteractive_python_command = 'python'
let g:vimteractive_bash_command = 'bash'
let g:vimteractive_zsh_command = 'zsh'
let g:vimteractive_maple_command = 'maple -c "interface(errorcursor=false);"'

" User commands
Expand All @@ -26,6 +27,7 @@ let g:vimteractive_maple_command = 'maple -c "interface(errorcursor=false);"'
command! Iipython :call Vimteractive_session(g:vimteractive_ipython_command)
command! Ipython :call Vimteractive_session(g:vimteractive_python_command)
command! Ibash :call Vimteractive_session(g:vimteractive_bash_command)
command! Izsh :call Vimteractive_session(g:vimteractive_zsh_command)
command! Imaple :call Vimteractive_session(g:vimteractive_maple_command)

" Control-S in normal mode to send current line
Expand Down

0 comments on commit 46106c5

Please sign in to comment.