less: Keep position when editing in vim via e/E
This commit is contained in:
@@ -6,11 +6,12 @@
|
|||||||
# NOTE: the current file can be edited with `v` already, but this doesn't work
|
# NOTE: the current file can be edited with `v` already, but this doesn't work
|
||||||
# when reading from stdin
|
# when reading from stdin
|
||||||
# NOTE: ^P omits the "done" message
|
# NOTE: ^P omits the "done" message
|
||||||
|
# NOTE: '' jumps back to the previous position
|
||||||
#
|
#
|
||||||
# edit in vim without any ANSI SGR sequences (e.g. color)
|
# 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
|
# edit in vim while keeping them
|
||||||
E noaction g|$nvim -\n
|
E noaction g|$nvim -\n''
|
||||||
|
|
||||||
#env
|
#env
|
||||||
# NOTE: Lines need a trailing space when concatenating
|
# NOTE: Lines need a trailing space when concatenating
|
||||||
|
|||||||
Reference in New Issue
Block a user