less: Keep position when editing in vim via e/E

This commit is contained in:
2025-09-18 23:19:07 +02:00
parent 2495d835b4
commit 4f6929bcce

View File

@@ -6,11 +6,12 @@
# NOTE: the current file can be edited with `v` already, but this doesn't work
# when reading from stdin
# NOTE: ^P omits the "done" message
# NOTE: '' jumps back to the previous position
#
# edit in vim without any ANSI SGR sequences (e.g. color)
e noaction g|$no-ansi-sgr | nvim -\n
e noaction g|$no-ansi-sgr | nvim -\n''
# edit in vim while keeping them
E noaction g|$nvim -\n
E noaction g|$nvim -\n''
#env
# NOTE: Lines need a trailing space when concatenating