 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

23rd March 2009, 06:54 PM
|
|
Registered User
|
|
Join Date: Sep 2007
Location: Dhaka,Bangladesh
Posts: 390

|
|
|
Selecting all in vi editor
Hi,
What is the shortcut key to select all from vi editor like (CTRL+a) with other editor?
__________________
fedora
|

23rd March 2009, 07:00 PM
|
 |
Registered User
|
|
Join Date: Apr 2005
Location: Thessaloniki, Greece
Posts: 290

|
|
Press gg to go to the first line, then v for visual selection, and then shift+g to go to the end of file.
There isn't a single shortcut for this. Of course you can map the above commands and make your own shortcut.
|

23rd March 2009, 07:09 PM
|
 |
Registered User
|
|
Join Date: Oct 2006
Location: Singapore, 新加坡
Posts: 735

|
|
|
May be there is but it does a little more.
Select all and delete (actually move to buffer)
:%d
Select all and copy to buffer
:%y
Use p to paste the buffer.
__________________
YaoWT - Leave no window unbroken ^_^
|

23rd March 2009, 07:09 PM
|
|
Banned
|
|
Join Date: Jun 2008
Posts: 1,315

|
|
Quote:
Originally Posted by axel
Press gg to go to the first line, then v for visual selection, and then shift+g to go to the end of file.
There isn't a single shortcut for this. Of course you can map the above commands and make your own shortcut. 
|
thank you!!!!!!!!  that works for real!!!!!!!!!  and good question cola!!!
bye!!!!!!!!!
|

23rd March 2009, 09:26 PM
|
 |
Administrator (yeah, back again)
|
|
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,212

|
|
|
A good idea is to install 'vim-enhanced', which includes vim-tutor. Lots of great ideas in that.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651
Don't use any of my solutions on working computers or near small children.
|

23rd March 2009, 09:46 PM
|
|
Banned
|
|
Join Date: Jun 2008
Posts: 1,315

|
|
Yeah!!!! honey bee bob!!!!!!!!!!!!!!!!!!!!!!!  i've copied it, here: http://pastebin.com/f625e18a7, but there aren't that "select all" feature explained!!!!
bye honey bob!!!!!!!!
|

23rd March 2009, 11:09 PM
|
 |
Administrator (yeah, back again)
|
|
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,212

|
|
|
No, it's just that the standard vim, included in Fedora these days doesn't have the vim-tutor, which I think is a great asset.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651
Don't use any of my solutions on working computers or near small children.
|

23rd March 2009, 11:53 PM
|
 |
Retired User
|
|
Join Date: Oct 2004
Location: London, UK
Posts: 4,999

|
|
|
weitjong's reply is probably what you want in practice.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 08:02 (Tuesday, 21-05-2013)
|
|
 |
 |
 |
 |
|
|