我目前正在使用在vim casts上找到的以下listchars:
set listchars=tab:▸\ ,eol:¬
我想将tab设为▸,然后加上3个空格,但似乎无法正常使用。我尝试了以下方法:
set listchars=tab:▸\ \ \ ,eol:¬
set listchars=tab:▸\ ,eol:¬
set listchars=tab:▸<Space><Space><Space>,eol:¬
所有抛出错误。这可能吗?
不,这是不可能的。:help 'listchars'
明确指出该选项卡的选项卡部分必须正好是两个字符:
tab:xy Two characters to be used to show a tab. The first
char is used once. The second char is repeated to
fill the space that the tab normally occupies.
"tab:>-" will show a tab that takes four spaces as
">---". When omitted, a tab is show as ^I.
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句