Her*_*son 1 vim arguments function shortcut cursor
是否可以通过键入快捷方式将光标下的单词发送到perl脚本?
我怎么做?
ZyX*_*ZyX 5
如果光标下的单词包含特殊字符,则上述解决方案不安全.你应该用
nnoremap <F2> :execute "!/path/to/script.pl ".shellescape(expand("<cword>"), 1)<CR>
代替.
整条生产线,更换expand("<cword>")用getline('.').对于光标使用下的文件名expand("<cfile>").
expand("<cword>")
getline('.')
expand("<cfile>")
归档时间:
15 年 前
查看次数:
731 次
最近记录: