is this possible? I know ctrl-A selects eveything but is there a command that just selects the current line?
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Keyboard shortcut to select a line of text
Collapse
X
-
-
'yy' in vi, Unix Roolz, embrace the power of the vi-ster....Originally posted by gricerboy View Postis this possible? I know ctrl-A selects eveything but is there a command that just selects the current line? -
I dont even know what that means!Originally posted by stek View Post'yy' in vi, Unix Roolz, embrace the power of the vi-ster....
Try Shift + End (or Shift + Home if you are at the end of a line).Comment
-
In an X11 terminal session (aka xterm), press mouse button one (MB1) 3 times.Originally posted by stek View Post'yy' in vi, Unix Roolz, embrace the power of the vi-ster....
Behold the warranty -- the bold print giveth and the fine print taketh away.Comment
-
but that also grabs the PS1 promptOriginally posted by Sysman View PostIn an X11 terminal session (aka xterm), press mouse button one (MB1) 3 times.

Comment
-
This won't solve your problem but its still worth having a look at:
ClipboardFusion 2.0.0 Released!
It works quietly in the background adding a bit of extra functionality to the clip board.Coffee's for closersComment
-
Home, followed by Shift + End."See, you think I give a tulip. Wrong. In fact, while you talk, I'm thinking; How can I give less of a tulip? That's why I look interested."Comment
-
-
When at the beginning of the line to be selected.Originally posted by PRC1964 View PostShift + DownNever has a man been heard to say on his death bed that he wishes he'd spent more time in the office.Comment
-
True. A former colleague put a line feed into his prompt to get around that. Waste of screen real estate in my opinion.Originally posted by FiveTimes View Postbut that also grabs the PS1 prompt
But where it does come in useful is for copying commands out of documentation or a script.Behold the warranty -- the bold print giveth and the fine print taketh away.Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- How to run a limited company — efficiently: smarter profit strategies Yesterday 07:13
- IR35 & Mutuality of Obligation in 2026/27: Explainer for Contractors Feb 26 07:32
- Post Office hit with ‘crazy’ £104million HMRC bill for IR35 failings Feb 25 07:03
- IR35 & Right of Substitution in 2026/27: Explainer for Contractors Feb 24 06:59
- Why Rupert Lowe MP’s Restore Britain has it wrong on IR35 Feb 23 07:21
- IR35 & Control in 2026/27: Explainer for Contractors Feb 20 07:13
- How key for IR35 will Control be in 2026/27? Feb 20 07:13
- Changes to non-compete clauses in employment contracts require ministers to tread carefully Feb 19 07:59
- What does the non-compete clause consultation mean for contractors? Feb 19 07:59
- To escalate or wait? With late payment, even month two is too late Feb 18 07:26

Comment