如何让vim不要在字符串中添加缩进?
发布时间:2020-12-16 01:57:34 所属栏目:安全 来源:网络整理
导读:我希望能够在我的bash脚本上使用gg = G,或者一些不会阻碍简单回声的自动格式变体. 我有一种感觉,这样的事情不是问题,我只是没有发现正确的方法: 为此场景正确回显字符串 为工作发出适当的命令 如果有人能帮助我,我将不胜感激. 我键入的内容: someFun(){ ec
我希望能够在我的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 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |