← Browse

@lexkong/doc

C

* [VIM空格和TAB转换](#vim空格和tab转换)

skillclaude

Install

agr install @lexkong/doc --target claude

Writes 3 files into .claude/skills/, pinned to git-ed306495.

  • .claude/skills/doc/ide.md
  • .claude/skills/doc/skill.md
  • .claude/skills/doc/vim.md

Document

其他技巧

VIM空格和TAB转换

在.vimrc中添加以下代码后,重启vim即可实现按TAB产生4个空格(Vim IDE 中已添加)

set ts=4  (注:ts是tabstop的缩写,设TAB宽4个空格)
set expandtab

有一个场景是从网上下载个 python 程序,里面是 TAB 键进行缩进的,上面的配置只对新建的文件有用,那么如何进行修改尼

对于已保存的文件,可以使用下面的方法进行空格和TAB的替换:

TAB替换为空格: 
:set ts=4
:set expandtab
:%retab!
  
空格替换为TAB:
:set ts=4
:set noexpandtab
:%retab!

注:加!是用于处理非空白字符之后的TAB,即所有的TAB,若不加!,则只处理行首的TAB。

Trustgrade C

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • warnFreshnessvery stale (>2y)

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • warnLicensecopyleft/unknown — index-and-link only

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-ed3064957bab2026-07-30