In a bash terminal session, I notice that the edit-and-execute-command C-xC-e does not work with Sublime Text 3.
在bash终端会话中,我注意到编辑和执行命令C-xC-e不能使用崇高的文本3。
I've set EDITOR=subl
, but when I try to edit a command line from bash, sublime-text opens an empty window.
我已经设置了EDITOR=subl,但是当我尝试从bash编辑命令行时,sublime-text会打开一个空窗口。
Do I miss something ?
我错过什么了吗?
1 个解决方案
#1
2
You should export the EDITOR as:
您应该将编辑器导出为:
EDITOR="subl -w"
as:
为:
To use Sublime Text as the editor for many commands that prompt for input, set your EDITOR environment variable:
要为许多提示输入的命令使用Sublime文本作为编辑器,请设置编辑器环境变量:
export EDITOR='subl -w'
出口编辑= ' subl - w '
Specifying -w will cause the subl command to not exit until the file is >closed.
指定-w将导致subl命令在文件为>关闭之前不退出。
Full explanation here
完整的解释
#1
2
You should export the EDITOR as:
您应该将编辑器导出为:
EDITOR="subl -w"
as:
为:
To use Sublime Text as the editor for many commands that prompt for input, set your EDITOR environment variable:
要为许多提示输入的命令使用Sublime文本作为编辑器,请设置编辑器环境变量:
export EDITOR='subl -w'
出口编辑= ' subl - w '
Specifying -w will cause the subl command to not exit until the file is >closed.
指定-w将导致subl命令在文件为>关闭之前不退出。
Full explanation here
完整的解释