From 20ea5255bca9e8659ca65edb1a6cc7612713d10f Mon Sep 17 00:00:00 2001 From: Florian Klein Date: Wed, 9 Oct 2013 17:32:07 +0200 Subject: [PATCH] make vim remote command work --- VimExceptionHandler.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/VimExceptionHandler.php b/VimExceptionHandler.php index f46ef26..2dc03b4 100644 --- a/VimExceptionHandler.php +++ b/VimExceptionHandler.php @@ -22,6 +22,12 @@ class VimExceptionHandler ); private $level; + private $vimServerName; + + public function __construct($vimServerName = 'dev') + { + $this->vimServerName = $vimServerName; + } static public function register($level = null) { @@ -70,7 +76,7 @@ class VimExceptionHandler } file_put_contents('/tmp/stack.php', $stack); - $cmd = sprintf('vim --servername %s --remote-send ":call PhpStackTrace()"', 'florian'); + $cmd = sprintf('vim --servername %s --remote-send ":call PhpStackTrace()"', $this->vimServerName); shell_exec($cmd); } }