Fedora Linux Support Community & Resources Center
  #1  
Old 23rd March 2009, 06:54 PM
cola Offline
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
Reply With Quote
  #2  
Old 23rd March 2009, 07:00 PM
axel Offline
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.
Reply With Quote
  #3  
Old 23rd March 2009, 07:09 PM
weitjong Offline
Registered User
 
Join Date: Oct 2006
Location: Singapore, 新加坡
Posts: 944
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 ♪ (^。^) 
Reply With Quote
  #4  
Old 23rd March 2009, 07:09 PM
bee Offline
Banned
 
Join Date: Jun 2008
Posts: 1,315
Quote:
Originally Posted by axel View Post
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!!!!!!!!!
Reply With Quote
  #5  
Old 23rd March 2009, 09:26 PM
bob Offline
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 69
Posts: 22,151
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.
Reply With Quote
  #6  
Old 23rd March 2009, 09:46 PM
bee Offline
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!!!!!!!!
Reply With Quote
  #7  
Old 23rd March 2009, 11:09 PM
bob Offline
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 69
Posts: 22,151
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.
Reply With Quote
  #8  
Old 23rd March 2009, 11:53 PM
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
weitjong's reply is probably what you want in practice.
Reply With Quote
Reply

Tags
editor, selecting

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
selecting language munna_dude Servers & Networking 1 29th July 2007 01:46 PM
Bluefish Editor Config file. and Kate Editor: HTML jsabarese Using Fedora 0 20th June 2006 04:35 AM
Selecting my soudcard capo Hardware & Laptops 2 8th June 2006 11:41 PM
Selecting KDE as default kenhall4 Using Fedora 5 6th March 2005 09:13 PM
selecting packets with YUM swede Installation, Upgrades and Live Media 2 30th July 2004 12:11 AM


Current GMT-time: 16:31 (Thursday, 02-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat