From b60a52d36ce6aa714ce982f674d08a687b969eb6 Mon Sep 17 00:00:00 2001 From: teoric Date: Sun, 13 Jul 2014 12:08:15 +0200 Subject: [PATCH 1/4] Allow to use VimuxRunCommand as a command use as :VimuxRunCommand "ls -la" --- plugin/vimux.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/vimux.vim b/plugin/vimux.vim index 18d0004..244a7a2 100644 --- a/plugin/vimux.vim +++ b/plugin/vimux.vim @@ -3,6 +3,7 @@ if exists("g:loaded_vimux") || &cp endif let g:loaded_vimux = 1 +command! -nargs=1 VimuxRunCommand :call VimuxRunCommand() command VimuxRunLastCommand :call VimuxRunLastCommand() command VimuxCloseRunner :call VimuxCloseRunner() command VimuxZoomRunner :call VimuxZoomRunner() From b437d32c1baad78dbea620e87ea0f71b7ed6351e Mon Sep 17 00:00:00 2001 From: teoric Date: Sun, 13 Jul 2014 12:10:39 +0200 Subject: [PATCH 2/4] remove exclamation mark --- plugin/vimux.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/vimux.vim b/plugin/vimux.vim index 244a7a2..c62479d 100644 --- a/plugin/vimux.vim +++ b/plugin/vimux.vim @@ -3,7 +3,7 @@ if exists("g:loaded_vimux") || &cp endif let g:loaded_vimux = 1 -command! -nargs=1 VimuxRunCommand :call VimuxRunCommand() +command -nargs=1 VimuxRunCommand :call VimuxRunCommand() command VimuxRunLastCommand :call VimuxRunLastCommand() command VimuxCloseRunner :call VimuxCloseRunner() command VimuxZoomRunner :call VimuxZoomRunner() From 3135ab5e30995a503ffceb10f8c5b3c2bb1b9365 Mon Sep 17 00:00:00 2001 From: teoric Date: Sun, 13 Jul 2014 12:18:28 +0200 Subject: [PATCH 3/4] right number of arguments for :VimuxRunCommand (read docs) --- plugin/vimux.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/vimux.vim b/plugin/vimux.vim index c62479d..d4bddb9 100644 --- a/plugin/vimux.vim +++ b/plugin/vimux.vim @@ -3,7 +3,7 @@ if exists("g:loaded_vimux") || &cp endif let g:loaded_vimux = 1 -command -nargs=1 VimuxRunCommand :call VimuxRunCommand() +command -nargs=2 VimuxRunCommand :call VimuxRunCommand() command VimuxRunLastCommand :call VimuxRunLastCommand() command VimuxCloseRunner :call VimuxCloseRunner() command VimuxZoomRunner :call VimuxZoomRunner() From e5a9eb74dab9d5cb8839ba041b9022e4121bd3e6 Mon Sep 17 00:00:00 2001 From: Teoric Date: Sun, 13 Jul 2014 12:37:17 +0200 Subject: [PATCH 4/4] :VimuxRunCommand nargs=*, not nargs=2 --- plugin/vimux.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/vimux.vim b/plugin/vimux.vim index d4bddb9..4a4acce 100644 --- a/plugin/vimux.vim +++ b/plugin/vimux.vim @@ -3,7 +3,7 @@ if exists("g:loaded_vimux") || &cp endif let g:loaded_vimux = 1 -command -nargs=2 VimuxRunCommand :call VimuxRunCommand() +command -nargs=* VimuxRunCommand :call VimuxRunCommand() command VimuxRunLastCommand :call VimuxRunLastCommand() command VimuxCloseRunner :call VimuxCloseRunner() command VimuxZoomRunner :call VimuxZoomRunner()