Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 648744

Summary: app-misc/screen vi-style autoindent
Product: Gentoo Linux Reporter: kuzetsa CatSwarm (kuza for short) <kuzetsa>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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 [