Vimscript-在shell中显示字符串值
以功能为例Vimscript-在shell中显示字符串值,vim,Vim,以功能为例 function! Test() :let aString = "I'm a string!" :!echo aString endfunction 现在输入:call Test()将以下内容传输到BASH: aString Press ENTER or type command to continue 我怎样才能:!echoaString的值 谢谢 好了,终于开始工作了: function! Test() :!clear :let aString
function! Test()
:let aString = "I'm a string!"
:!echo aString
endfunction
现在输入:call Test()
将以下内容传输到BASH:
aString
Press ENTER or type command to continue
我怎样才能:!echo
aString的值
谢谢 好了,终于开始工作了:
function! Test()
:!clear
:let aString = 'I\''m a string\!'
:execute "!echo " . aString
endfunction
好了,终于开始工作了:
function! Test()
:!clear
:let aString = 'I\''m a string\!'
:execute "!echo " . aString
endfunction