我希望能够在我的bash脚本上使用gg = G,或者一些不会阻碍简单回声的自动格式变体.
我有一种感觉,这样的事情不是问题,我只是没有发现正确的方法:
>为此场景正确回显字符串
>为工作发出适当的命令
如果有人能帮助我,我将不胜感激.
我键入的内容:
someFun() { echo "Some really long string that is going to be automatically indented."; }
我在提示中看到了什么
>./someFun Some really long string that is going to be automatically indented.
解决方法
您可以像这样连接字符串:
echo "Some really long string that is going to be automatically" \ "indented."
要么关闭缩进:
:setlocal noautoindent :setlocal nosmartindent
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。