代码: 全选
let s:ctagFileDir = "/home/ooxx/vimplug/data/"
let s:sys_tags = s:ctagFileDir."sys-tags"
echo "------------".s:sys_tags."--------------"
在加载C文件的时候看到echo的输出如下:
代码: 全选
[ooxx@localhost wan]$ vi wan.c
------------/home/ooxx/vimplug/data/sys-tags--------------
请按 ENTER 或其它命令继续
可我在设置ctags路径的时候问题来了在.vimrc中设置代码如下:
代码: 全选
set tags+=s:sys_tags
代码: 全选
tags=./tags,./TAGS,tags,TAGS,s:sys_tags
根本就没有把变量 s:sys_tags 转换成其对应的值 /home/ooxx/vimplug/data/sys-tags
我对vimrc脚本只知道一点点, 求高人指点如何才能将上面输出中的s:sys_tags转换成其对应的值 /home/ooxx/vimplug/data/sys-tags