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
- The weird, the wonderful and the genuinely useful: what contractors get wrong about expenses Today 06:00
- Right to Work changes from October 2026: a contractor’s explainer Yesterday 15:46
- Data Kraken v Torry Harris: 5 lessons for software developer contractors Yesterday 06:09
- Loan Recall Case Study: Amanda Sep 1 06:00
- How IR35 inflated an £8.5bn consultancy bill — and tests Burnham at the Budget Aug 28 07:47
- Autumn Budget 2026: FCSA’s 5 contractor asks of John Healey Aug 27 04:15
- Andy Burnham's Zoom gripe doesn’t apply to IT contractors, say recruiters Aug 26 03:41
- Check your Loan Recall paperwork for the Isle of Man: it could matter Aug 25 03:27
- Budget 2026: Contractor advisers ask for ‘IR35 reset’ Aug 24 04:57
- Why might an umbrella company fail to pay its total tax bill to HMRC? Aug 18 06:08

Comment