less: Open file (also stdin) in vim with e/E

The current file can be edited with `v` already, but this doesn't work
when reading from stdin.
This commit is contained in:
2025-06-20 15:41:35 +02:00
parent f3d8ea3de0
commit 3f621617ef
2 changed files with 19 additions and 0 deletions

8
.local/bin/no-ansi-sgr Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sed -f
# SPDX-License-Identifier: MIT
# Copyright (c) 2025 Julian Prein
#
# Remove ANSI SGR (Select Graphic Rendition) escape sequences, e.g. setting
# color or bold font.
s/\[[^m]*m//g