开发者

How to use GNOME Terminal instead of XTerm here?

I have the following variable defined in ~/.vimrc. This w开发者_StackOverflow社区orks well with XTerm but I can't get it working with GNOME Terminal. Please help.

let g:slimv_client = 'python /home/dumrat/.vim/ftplugin/slimv.py -r "xterm -e sbcl --core /home/dumrat/.sbcl/sbcl.core -s"'


The option -e makes XTerm run the command specified by all of the remaining command line arguments following -e. Consequently, xterm -e sbcl --core /home/dumrat/.sbcl/sbcl.core -s opens an XTerm instance running sbcl --core /home/dumrat/.sbcl/sbcl.core -s command.

GNOME Terminal has the option -x with the same meaning that -e has for XTerm.1 Thus, change the configuration file, as follows.

let g:slimv_client = 'python /home/dumrat/.vim/ftplugin/slimv.py -r "gnome-terminal -x sbcl --core /home/dumrat/.sbcl/sbcl.core -s"'

1 Note that -e has somewhat different behavior in GNOME Terminal—the whole command is expected to be in the next argument, while -x assumes that everything to the end is the command to run.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜