Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Upgrade Slimux

  • Loading branch information...
commit 53c585167f5b81875160392a0737bd8c31fac7e5 1 parent ec01443
@epeli authored
Showing with 30 additions and 17 deletions.
  1. +27 −15 bundle/slimux/README.md
  2. +3 −2 bundle/slimux/plugin/slimux.vim
View
42 bundle/slimux/README.md
@@ -6,7 +6,7 @@ with panes. REPL and Shell styles.
REPL commands are designed to work with various Read Eval Print Loops such as
`python`, `irb` (Ruby), `node` (Javascript), `coffee` (CoffeeScript) etc.
-This is loosely modelled after [SLIME for Emacs][SLIME]. Shell commands are designed
+This is loosely modelled after [SLIME for Emacs][SLIME]. Shell commands are designed
to work with normal shells such as `bash`. These are useful for running tests for
example.
@@ -34,7 +34,7 @@ http://ascii.io/a/409
## Installation
-Use [pahtogen][] and put files to
+Use [pathogen][] and put files to
`$HOME/.vim/bundle/slimux/`
Slimux requires fairly recent tmux version. Be sure you have 1.5.x or later.
@@ -56,14 +56,27 @@ Prompt pane configuration for current buffer.
## Shell Commands
-### SlimuxShellPromt
+### SlimuxShellPrompt
-Promt for a shell command and send it to configured tmux pane.
+Prompt for a shell command and send it to configured tmux pane.
### SlimuxShellLast
Rerun last shell command.
+### SlimuxShellRun
+
+Specify a shell command to run directly, without the prompt:
+
+ :SlimuxShellRun rspec spec/foo_spec.rb
+
+Suitable for mapping and other automation.
+
+Note that you need to double any escapes intended for the shell using this command.
+E.g. to list files with actual asterisks in their name:
+
+ :SlimuxShellRun ls \\*
+
### SlimuxShellConfigure
Prompt global pane configuration for the shell commands.
@@ -117,24 +130,23 @@ You can use [Python][] and [CoffeeScript][] hooks as examples.
## Other Vim Slime plugins
-Before I created this plugin I tried several others, but non of them satisfied me. They where too
-complicated or just didn't support the languages I needed. So if Slimux isn't your cup of tea,
+Before I created this plugin I tried several others, but non of them satisfied me. They where too
+complicated or just didn't support the languages I needed. So if Slimux isn't your cup of tea,
maybe one of these is:
- * https://github.com/jpalardy/vim-slime
- * https://github.com/benmills/vimux
- * https://github.com/kikijump/tslime.vim
- * https://github.com/jgdavey/vim-turbux
- * http://www.vim.org/scripts/script.php?script_id=2531
-
+ * <https://github.com/jpalardy/vim-slime>
+ * <https://github.com/benmills/vimux>
+ * <https://github.com/kikijump/tslime.vim>
+ * <https://github.com/jgdavey/vim-turbux>
+ * <http://www.vim.org/scripts/script.php?script_id=2531>
+ * <https://github.com/ervandew/screen>
+
[tmux]: http://tmux.sourceforge.net/
-[pahtogen]: https://github.com/tpope/vim-pathogen
+[pathogen]: https://github.com/tpope/vim-pathogen
[vim-slime]: https://github.com/jpalardy/vim-slime
[SLIME]: http://common-lisp.net/project/slime/
[Python]: https://github.com/epeli/slimux/blob/master/ftplugin/python.vim
[CoffeeScript]: https://github.com/epeli/slimux/blob/master/ftplugin/coffee.vim
-
-
View
5 bundle/slimux/plugin/slimux.vim
@@ -201,7 +201,8 @@ function SlimuxSendCommand(cmd)
call s:Send(s:cmd_packet)
endfunction
-
-command! SlimuxShellPromt call SlimuxSendCommand(input("CMD>", s:previous_cmd))
+
+command! -nargs=1 -complete=shellcmd SlimuxShellRun call SlimuxSendCommand("<args>")
+command! SlimuxShellPrompt call SlimuxSendCommand(input("CMD>", s:previous_cmd))
command! SlimuxShellLast call SlimuxSendCommand(s:previous_cmd)
command! SlimuxShellConfigure call s:SelectPane(s:cmd_packet)
Please sign in to comment.
Something went wrong with that request. Please try again.