jart / blink

tiniest x86-64-linux emulator
ISC License
6.96k stars 222 forks source link

Modelines #158

Closed mrdomino closed 11 months ago

mrdomino commented 11 months ago

Did build/htags manually because it did not fit the right pattern. Then, just this:

rg 'vi:.* et' -l0 | \
  xargs -0 sed -i '' 's/vi:\(.*\) et\(.*\)  :vi/vi:\1 noet\2:vi/'
rg 'vi:.*net' -l0 | \
  xargs -0 sed -i '' 's/vi:\(.*\)net\(.*\)  :vi/vi:\1et\2   :vi/'
rg '\Svi:' -l0 | xargs -0 sed -i '' \
  's/\([^[:space:]]\)\(vi:.*\)  :vi\([^[:space:]]\)/\1 \2:vi \3/'
rg '\Svi:' -l0 | \
  xargs -0 sed -i '' 's/[^[:space:]]\(vi:.*:vi\)[^[:space:]]/ \1 /'