Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 648744 - app-misc/screen vi-style autoindent
Summary: app-misc/screen vi-style autoindent
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-25 06:53 UTC by kuzetsa CatSwarm (kuza for short)
Modified: 2018-02-25 06:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kuzetsa CatSwarm (kuza for short) 2018-02-25 06:53:40 UTC
/usr/portage/app-misc/screen/files/screenrc contains hardcoded vi syntax:

when using ^a ^[ and ^] respectively (copy paste)

# Yet another hack:
# Prepend/append register [/] to the paste if ^a^] is pressed.
# This lets me have autoindent mode in vi.
  register [ "\033:se noai\015a"
  register ] "\033:se ai\015a"
  bind ^] paste [.]


This has been present for at least 4 years.

A user in #gentoo (freenode) wanted to know how to copy paste text from the curses-based browser they were using to be able to save on keystrokes manually typing every command.

unexpected result:

from a bash prompt, using ^a ^] to paste text, the string "se noai" is added unconditionally:

$ se noai
bash: se: command not found
Comment 1 kuzetsa CatSwarm (kuza for short) 2018-02-25 06:55:33 UTC
^a ^[ is not ^a [