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

Comment